How to have the DeviceProfile in messages


#1

Hi,

Today we save messages from MQTT directly in our database.
We have different kinds of devices and so with different decoders needed.
We would like to know how to add the field “device-profile” in the messages ? We imagine we could use the API but for fast filtering it could be easier for us to have this field in the message.

How can we add specific fields (stats or device profile information) in the messages.

{"applicationID":"1","applicationName":"agur-water-domestic-app","deviceName":"EB00002","devEUI":"2100000000000002","rxInfo":[{"gatewayID":"7276ff000806005d","name":"KerlinkEmbeblue","time":"2018-11-23T10:44:48Z","rssi":-59,"loRaSNR":4.5,"location":{"latitude":0,"longitude":0,"altitude":0}}],"txInfo":{"frequency":867100000,"dr":5},"adr":true,"fCnt":26,"fPort":1,"data":"AAAC3BIAAAAAAAAAAAAAAAAAAAAAAA==","catchbox_ts":1542969890,"action":"custom"}