Payload Message sent by uplink in the Gateway

Hi, i’m trying to understand the way to read the values that uplink the tags in the range of the Gateway, the message has this topology (or Payload?) :

{“position”:{“x”:2.39,”y”:4.18,”z”:0.3,”quality”:66},”superFrameNumber”:916}

Picture to understand:

So i want to know the function that writes this or how can i read/write this.
Im using C to read this message, but cant do it at the moment.

1 Like

Hi FrancoCapararoArg,

1, This messages are in Json fomat, if you are using C , please search Cjson , there are many open source Cjson source file, you only need add the source file in your project.
2, In our project, just use mmap/fread/fwrite/ to operate the file according to the directory you showed in the picture.

Thanks

Jesen

1 Like

yes, but when i write in Json format, i cant receive nothing… just a /node/uplink/status saying “false”.

Hi Franco,

what do you mean with writing? Do you mean to publish data to the node? If so, you need to publish to the downlink topic, see this post:

Another MQTT library option is to use Mosquitto libraries:
https://mosquitto.org/api/files/mosquitto-h.html

Cheers,
TDK

1 Like