Pass device attributes into uplink JSON

bertrik
Thu, 18 Feb 2021 23:58:46 +0000
Ideas

I noted that in the v3 console, you can now define a set of attribute/values for each device.
Would it be possible to forward these attributes in the JSON uplink messages sent over MQTT?

In my use case this would be a very convenient feature.
My application is receiving airborne particulate matter / temperature / humidity telemetry and passing it on to sensor.community and opensensemap.org to display it on their maps.
For opensensemap, I need an id to correlate the measurement to a station defined in their backend.
If I could put the id in an attribute, and receive it in each uplink JSON message that would make my application completely stateless.
Also management of measurement nodes could then be done by someone other than myself: they just enter a new node in the console, by device EUI, add the attribute for opensensemap in an attribute and it all works without my intervention.

6 posts - 3 participants