How to send data from a device to microservice via MQTT communication?

I would like to receive data from existing IoT devices on Cumulocity’s microservice. Existing IoT devices communicate via MQTT and have their own data structure.

It is difficult to change the specifications of existing IoT devices, and we would like to accommodate them in Cumulocity following the current specifications as much as possible.

The page in this link says “By default, they provide REST.” Is it possible for Microservices to receive MQTT communications with its own data structures?
https://cumulocity.com/guides/microservice-sdk/concept/#overview

I think you are looking for this fantastic piece of software?
SoftwareAG/cumulocity-dynamic-mapper: The ultimate Mapper for building the bridge between any Message Broker and Cumulocity IoT in a zero-code approach! (github.com)

2 Likes

This thread might be interesting for you: Device Integration using MQTT Protocol

2 Likes

Thank you @Christoph_Souris @Korbinian_Butz for information!!

I’m not sure if my problem can be completely solved by dynamic mapper, but I’ll try it.

1 Like

@yamashita Let me know if there is anything which is blocking you using the dynamic mapper. Always looking for feedback to improve it.

Btw. To communicate with MQTT Devices you always need a MQTT broker where the device can connect to. If you don’t have that you can try out MQTT Service which is a cumulocity embedded MQTT Broker which is currently in private preview. You can reach out to your sales rep or cumulocity contact person to get access to it if you are interested.