My legacy app, collects data and posts to a remote server. When it is ready to upload data to the server having already performed various housekeeping functions:
I get the CONNECT response
I then send a HTTP POST request:
POST /post.php HTTP/1.1
I then send a '+++' sequence to close the socket.
The app returns to the start of the loop and happens to check for SMS messages:
I don't get an 'OK' and it goes onto the next AT command
Here I don't get OK I get :
HTTP/1.0 400 Bad request
<html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
Which implies the socket connection has timed out
After that, any AT commands seem to execute correctly.
All AT commands are send via MDM.send
My '+++' sequence is bracked by time.sleep(3) .
Is there a solution to this? Is there an explicit close socket?
We are using the GE910-GNSS s/w revision 13.00.106
Any adice would be much appreciated