FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
349 views 1 comments
by anonymous

Dear Team

I am testing RUT240 with Thingsborad platform, I've found that when router is sending Int 32 Byte data, it is sent smoothly but when I try to send Ascii data, thingboard server does not recieved it.

I found that on Int32Byte data, its not putting "" in the data so the JSON sting is as follows:

[
  {
    "ID": "1",
    "TS": "1626269900",
    "ST": "2",
    "VR": "6650"
  }
]
But when sending ASCII, Its putting "" with the string and that might be the issues, see the string below which RUT240 is sending:


[{"ID":"1", "TS":"1626269722","ST":"8","VR":""Teltonika-RUT240.com""}]
Kindly let me know the solution.

1 Answer

0 votes
by anonymous
Hello,

It seems that the extra quotation marks are indeed what limits Thingsboard from processing the data. The most basic solution for this is taking off the quotation marks in your Modbus data to server configuration, so the full data sender configuration JSON format would be as follows:

{"ID":"%i", "TS":"%t","ST":"%s","VR":%a}

If you must have quotation marks in your sent data, then using singular quotation marks also works:

{"ID":"%i", "TS":"%t","ST":"%s","VR":'%a'}
Best answer
by anonymous
Dear Aurimas

Thanks for the details, i tried it already and it worked, thanks for your valuable feedback,