You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently developing a project that relies on an Arduino sending data to a MQTT server over LoRa and a dragino GateWay.
I'd really like to send data in JSON, however, all examples (at least the ones I found) use the format attrName1=attrValue1&attrName2=attrValue2[...].
Using this protocol, I could send data correctly and receive it in the other end; however, when a use JSON encoding, the GW receives it correctly but doesn't forward it. Logs below
Mon Aug 24 19:49:44 2020 user.notice root: [IoT.MQTT]: Check for sensor updateMon Aug 24 19:49:44 2020 user.notice root: [IoT.MQTT]: Found Data at Local Channels: 10009Mon Aug 24 19:49:44 2020 user.notice root: [IoT.MQTT]: Find Match Entry for 10009Mon Aug 24 19:49:44 2020 user.notice root: [IoT.MQTT]: [-t] /TOPICMon Aug 24 19:49:44 2020 user.notice root: [IoT.MQTT]: [-m] {"field1":29, "field2":86,"field3":87}Mon Aug 24 19:49:50 2020 user.notice root: [IoT.MQTT]: Check for sensor updateMon Aug 24 19:49:52 2020 daemon.info lg02_pkt_fwd[26457]:Mon Aug 24 19:49:52 2020 daemon.info lg02_pkt_fwd[26457]: RXTX~ Receive(HEX):3c31303030393e7b226669656c6431223a33342c20226669656c6432223a38352c226669656c6433223a38397d
Is the & encoding the only one supported or am I missing something?
The text was updated successfully, but these errors were encountered:
I'm currently developing a project that relies on an Arduino sending data to a MQTT server over LoRa and a dragino GateWay.
I'd really like to send data in JSON, however, all examples (at least the ones I found) use the format
attrName1=attrValue1&attrName2=attrValue2[...]
.Using this protocol, I could send data correctly and receive it in the other end; however, when a use JSON encoding, the GW receives it correctly but doesn't forward it. Logs below
Is the
&
encoding the only one supported or am I missing something?The text was updated successfully, but these errors were encountered: