I’ve got gode running on my Photons that sets up a TCPClient, connects to a php script on my [hosted] server and manually submits an HTTP POST request with a JSON payload in the request body.
When I tried to run this same code on the Electron version of our product, the code connects [client.connect(targetServer, port)
returns true] and occasionally the sever saves the JSON to it’s file and the Electron reports the response from the server. But most of the time the server logs a request to the php script, but no data is saved and the Electron reports 0 bytes returned from the server.
I added a bunch of delay()
s in the the theory that TCP over the cellular connection might have more latency, to no avail.
So far haven’t been able to find a pattern to when it does and when it won’t upload the payload.
Any suggestions?