Skip to content

Commit 7c015ef

Browse files
committed
2 parents 17aa483 + 634f8fb commit 7c015ef

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Readme.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
33
In 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

0 commit comments

Comments
 (0)