Hi guys,
I'm trying to use a SIM800L module to send data to Thingspeak. Looks like the unit has successfully connected to a GPRS connection etc. The issue that I seem to be having is the syntax using the GET command to send a data value to Thingspeak. I'm using the "SendCommand" component macro as follows to send the strings below once the connection has been established:
"AT+CIPSEND\r\n"
then
"GET https://api.thingspeak.com/update?key=X ... 25\r\n\r\n" -> XXXXX is where my key would be
But nothuing arrives on the Thingspeak website. All the fields are correct because when I insert the GET string into my web browser the value appears on Thingspeak. It may be that the modem is waiting for a Ctrl-Z character to indicate that the string is complete and needs to be sent, but I'm not sure?
Any suggestions?
Sending data to Thingspeak with GPRS
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Sending data to Thingspeak with GPRS
You might need to include the Host section of the GET message?
e.g.
https://www.hurl.it/
e.g.
You might be able to do some testing using this website.GET /pub/WWW/TheProject.html HTTP/1.1
Host: http://www.w3.org
https://www.hurl.it/
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Sending data to Thingspeak with GPRS
You also likely need to enable SSL
Try searching SIM800L https
Try searching SIM800L https