I am setting up a modbus + data to server for the first time on a TRB255. Modbus is working (test shows data) and data to server is posting but the data is repeated rapidly forever and only one message is sent.
The server that receives the data is written by me just for testing only (later i will just a real webserver) in the local network. It is a mini httpd server that i have full control over. When receiving a POST, the content is read and a 201 (or 200) is returned with a location url (for result code=201) that i assume the TRB does not use.
See attached screenshots to server received data and my modbus/dts settings. I am just testing with the StatusAndTime request.
As you can see, the TRB connects only once and then sends the same data/value rapidly (about 2x per second) and i have left it running for 2 minutes. The 72 is the content-length.
The URL parameter ORG=123 is just for testing
I suspect that the return response may not be recognized by the TRB. This is the response that is sent back. txtResponseCode and txtLocation are on the form as 201 and DTS/ExD but i have used other values as well.
Response.ResponseCode = txtResponseCode.Text;
Response.SetHeader("Content-Type", "application/json; charset=utf-8");
Many thanks in advance,