File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# SIM800L
2- An smart library based on Seeeduino that implements the AT HTTP commands to perform GET and POST requests to a JSON API.
2+ A smart library based on Seeeduino that implements the AT HTTP commands to perform GET and POST requests to a JSON API.
33In order to make a requests the library follows these steps:
44
55##### Configure Bearer:
@@ -23,12 +23,11 @@ In order to make a requests the library follows these steps:
2323 - AT+HTTPPARA="CID",1 -> wait for OK
2424 - AT+HTTPPARA="URL","smartgarden.herokuapp.com" -> wait for OK
2525
26- For example, if we have this body:
27- body = {"location_id": 238, "fill_percent": 90}
26+ For example, if we have this body: {"location_id": 238, "fill_percent": 90}
2827
2928 - AT+HTTPPARA="CONTENT","application/json"
3029 - AT+HTTPDATA=strlen(body),10000 -> wait for DOWNLOAD, then write the body and wait 10000
3130 - AT+HTTPACTION=1 -> wait for ,200,
3231 - AT+HTTPREAD -> read buffer and parse it
3332 - AT+HTTPTERM -> wait for OK
34- - AT+SAPBR=0,1
33+ - AT+SAPBR=0,1
You can’t perform that action at this time.
0 commit comments