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
179 views 0 comments
by
I'm grabbing a Modbus/TCP value and posting to a webserver.

The JSON Format seems a bit strange, so I'm testing just using the %a in the format for the value.

The payload I receive on the server looks like this in the body : "[20616]":""

I have selected segment count 1 and Send as object.

When deselecting, sending as object, the payload looks as follows: "[[20616]]": ""

Is this correct ?

1 Answer

0 votes
by anonymous

Hello, 

Here are the results of data to server:

Object: 
POST / HTTP/1.1
Host: 192.168.100.131:9091
Accept: */*
Content-Length: 67
Content-Type: application/x-www-form-urlencoded
[{"TS": "1608021045", "D": "15/12/2020 12:30:45", "data": [0,390]}]

Non-Object:
POST / HTTP/1.1
Host: 192.168.100.131:9090
Accept: */*
Content-Length: 65
Content-Type: application/x-www-form-urlencoded

{"TS": "1608021141", "D": "15/12/2020 12:32:21", "data": [0,390]}

Regards,
Jerome