How to remove MQTT device prefix from any child device name

What product/components do you use and which version/fix level?

1011.0.19

Are you using a free trial or a product with a customer license?

What are trying to achieve? Please describe in detail.

I want to remove prefix mqtt device from child device
for creating child device i am using templet 101
guide me with some example or guide

Do you get any error messages? Please provide a full error message screenshot and log file.

Have you installed latest fixes for the products

Hi,
can you share the message you sent using template 101? One can state the name of the devices as third parameter: 101,uniqueChildId,myChildDevice,myChildType. This way a child device of type ‘myChildType’ with name ‘myChildDevice’ and external Id ‘uniqueChildId’ will be created.

See the docs here: SmartREST 2.0 - Cumulocity IoT Guides

Hi @sumit.singh

For the root device it is “100,{{name}},{{type}}”
For child devices it is "101,{{UniqueDeviceID}},{{name}},{{type}}.

Now to the tricky part:
You have to make sure that either 100 or 101 for child devices are the first messages received by the platform before sending any other messages because of race conditions.
Most likely you do that by sending it QoS 1 or 2 and wait for the ACK.

It sometimes happens that you send 101 and in parallel already some data for the child device which will be processed first and therefor the device created with “MQTT Device …” and 101 ignored.

Regards
Stefan

@Stefan_Witschel Thanks for your response I will follow the same

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.