4504 questions

5529 answers

8723 comments

5420 members

0 votes
55 views 0 comments
by
When i try to send data to the azure IoT hub using IoThub monitoring but the string that is send arrives with added string parts. Before every  "  a \ is added. Secondly before the whole string the term " " value" "  is added as if the data as a whole is a json object where the data itself is the json string already. Because of this the iothub does not interpret the data properly and has to arrive properly. It' s not an option for us to change the incoming data from the hub side. An example of incoming data in azure:

  Data:[{

"value": "{\"timestamp\":\"2020-05-25-T04:10:54.624Z\",\"sensors\":[{\"sensor\":\"s_temperatuurBuitenlucht\",\"unit\":\"mA\",\"value\":0,\"timestamp\":\"2020-05-25-T04:10:54.624Z\"},{\"sensor\":\"s_luchtvochtigheid\",\"unit\":\"mA\",\"value\":0,\"timestamp\":\"2020-05-25-T04:10:54.624Z\"}]}

}]

This is the string we send:

{"timestamp":"2020-05-25-T04:10:54.624Z","sensors":[{"sensor":"s_temperatuurBuitenlucht","unit":"mA","value":0,"timestamp":"2020-05-25-T04:10:54.624Z"},{"sensor":"s_luchtvochtigheid","unit":"mA","value":0,"timestamp":"2020-05-25-T04:10:54.624Z"}

In the first example the data:[{ part is from the hub side. Is there any way for the data to arrive like the second example? The router adds those characters and treats the string as an object of value but just needs to forward the data literally.

Router: RUT955

Firmware: RUT9XX_R_00.06.06.1

Kind regards,

Lex van Vugt

1 Answer

0 votes
by
Hello,

Please send me a troubleshoot file from your device via private message.

It can be found in SYSTEM > ADMINISTRATION > TROUBLESHOOT section.

Regards,
Justin