New tedge twin (inventory) MQTT topic #2279
Labels
idea
ideas/opportunities/feature requests which need to be further investigated before implementation
theme:mqtt
Theme: mqtt and mosquitto related topics
Milestone
Is your feature request related to a problem? Please describe.
Support new tedge telemetry type called
twin
(in Cumulocity IoT this is called inventory managed object updates) to add json data to the device, child device or service's digital twin in the Cloud.Describe the solution you'd like
New topic following the tedge MQTT V1 interface to allow users to publish additional information to the entity (e.g. device, child device or service).
Topic name
Payload (json, retain=true)
MQTT messages published to
te/{identity}/twin/<type>
should be published with the retained flag to allow other components to more easily observe the information.Cloud mapper initialization (to be validated)
When the tedge-mapper starts up for a given cloud, it should run the following routine to process the initial values after any registration process has finished:
{identifier}/twin/+
and merge the results. The values received via MQTT take precedence over any duplicated values from the inventory.json file{identifier}/twin/+
MQTT topic as single message to the relevant cloudOpen questions
/data/
topics will be merged into the inventory.json before publishingDescribe alternatives you've considered
Additional context
A draft PR has already been created to include the following items to assist with the development:
/twin/
topicRelated tickets
The text was updated successfully, but these errors were encountered: