I have setup a data sender to my API for modbus data. Somehow it does not send a request to my server, also can’t find anything in the logs in the troubleshoot file.
Settings
Data Source: Modbus Data
Protocol: http(s)
Json format: default
Segment count: 1
Send as object: On
Host/url: mywebsite.com steht zum Verkauf - Sedo GmbH
Period: 20
Data filtering: All data
Custom header: Content-Type: application/json
Modbos
In the Modbus configuration I have created, tested and enabled a request.
Server
My server just checks for the incoming data/connection. In the logs I can not find any connection attempts.
public function req($id)
{
$this->autoRender = false;
$jsonData = $this->request->input('json_decode');
file_put_contents('request.txt', print_r($jsonData, true));
return $this->response->withType('application/json')->withStringBody($jsonData);
}
Ping
PING api.mywebsite.com (188.240.52.197): 56 data bytes
64 bytes from [IP]: seq=0 ttl=50 time=24.421 ms
64 bytes from [IP]: seq=1 ttl=50 time=24.140 ms
64 bytes from [IP]: seq=2 ttl=50 time=31.992 ms
64 bytes from [IP]: seq=3 ttl=50 time=40.700 ms
64 bytes from [IP]: seq=4 ttl=50 time=27.480 ms
--- api.mywebsite.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 24.140/29.746/40.700 ms
Reboot
Rebooted multiple times. No difference.
What can I do next? Where can I find the data to server logs on the Teltonika TRB145?