Cloud to device message from custom widget

Product/components used and version/fix level are you on:

Detailed explanation of the problem:

I have developed a app using Application builder and a custom widget to show alarm list, to fetch this alarm data i want to call rest over mqtt from cloud to device.

my device is capable to listen messages from cloud and return response.

i want to publish message to device using my custom widget same a shell command do.

Any help or code refrence for this implementation?

Deepak Sharma

Error messages / full error message screenshot / log fileL

Is your question related to the free trial, or to a production (customer) instance?

Have you installed all the latest fixes for the products and systems you are using?

hi @d.sharma,
Can you please elaborate you have developed on which product and version?

Vikash Sharma

I believe he is referring to cumulocity here? labeling is wrong.

Hi Deepak,

The datastructure of the shell command operation is covered here: Device management library - Cumulocity IoT Guides

You can use the OperationService (OperationService | Cumulocity Web SDK) to create the operation for the device and afterwards use the real-time API to listen for updates of the operation coming from the device.

You may want to consider creating your alarms directly within Cumulocity instead of requesting them from the device.