Hello it think SIM5360 is older than SIM800 . But anyway is it possible to write a post-request with the same AT Comands used with a SIM800 ?
With the SIM 800 the Header can be filled step by step:
Now with my SIM5360 I by the way have the Problem to write through a spi interface … the function is called xbwrite()… i can put AT comands in there. I know it works if i put my POST_Request Header as string inside : xbwrite(“HEADER”);
But it would be really interessting, as i have no much RAM, to split everything up. At the Moment I just can split my Header into two parts: xbwrite( “Header”) xbwrite(“rest of header”); but with 3 xbwrite it doesnt work.
It is really hard to to test things in this sensible enviromnent, this is why I ask, if it is possible to split the comands up like it works with the SIM800
Ah i found this repository on GitHub:
But i think is also sending it in one big string…
String http_request = ""; http_request += method + " " + path + " HTTP/1.1\r\n"; http_request += "Host: " + host + "\r\n"; if (_http_req_header.indexOf("") < 0) http_request += "User-Agent: SIM5360 dev by IOXhop\r\n"; http_request += _http_req_header; if (_http_req_header.indexOf("Content-Type:") < 0 && data.length() > 0) http_request += "Content-Type: application/x-www-form-urlencoded\r\n"; if (data.length() > 0) http_request += (String)"Content-Length: " + data.length() + "\r\n"; http_request += "\r\n"; // END of request if (data.length() > 0) http_request += data; // Add data after end request