ChirpStack Python API to get objectJSON 5 keys

I’ve used this example here: Python examples - ChirpStack open-source LoRaWAN<sup>®</sup> Network Server and was able to get the correct resp.f_cnt value but now I’m trying to get the actual data such as Temp, Humidity etc from my Device Data that looks like this:


objectJSON: {} 5 keys

  • cnt:0
  • gas:18028
  • humidity:28.53
  • pressure:978.46
  • temperature:28.95

and can’t find any example or documentation related to the python section on how to get that data.

A kick in the right direction is a step forward so have no mercy.

The objectJSON key will contain the string with the JSON blob. Thus you have to parse this string in Python as JSON. See also the API definition of this field: chirpstack-api/integration.proto at master · brocaar/chirpstack-api · GitHub.