I'm trying to access an existing a sensor from the cumulocity platform to get and set measurement data. Is there any small example how to do this?
Thanks and kind regards, Andreas
I'm trying to access an existing a sensor from the cumulocity platform to get and set measurement data. Is there any small example how to do this?
Thanks and kind regards, Andreas
There are several open source examples and also SDKs in the Cumulocity bitbucket repository
For device integration I can recommend the walkthroughs on request level how a device agent works. They exist both for HTTP and MQTT (note that MQTT in Cumulocity is mainly for writing data to the system not for retrieving it). The documentation also contains plenty of code snippets to get you started.
There is of course also the pure API reference but I would start from one of the integration guides to understand how a device "detects" its representation in Cumulocity and then adds data for it.