Hello
I am trying the send data to my channel from a SIM800 series GPRS module. I am using Arduino to code as it is an open project.
I have been able to send to Thingspeak as well as callmebot.com. However I am doing something wrong in my syntax.
I have reached the server and got the following error reply:
{"close_code":4,"error_origin":"external","error_text":"expecting JSON in request body or in data= request variable","event_code":103,"origin_id":1228622,"origin_type":9,"source":"41.114.175.45","timestamp":1730603399.08395,"transport":"http","uri":"/"}
My code looks like this:
Serial1.println("AT+HTTPPARA=\"URL\",\"http://ch1228622.flespi.gw:26545&ident=nr1234\"");
delay(3000);
ShowSerialData();
Serial1.println("AT+HTTPACTION=1"); //Start HTTP POST
I am unsure as to how to construct the string I send to the module. The String looks like this
AT+HTTPPARA="URL","http://ch1228622.flespi.gw:26545&ident=nr1234"
What is missing to fullfil the correct Jason etc. rules for Flespi?
I would really appreciate help with this and am looking forward to doing lots of work using this platform.
Regards
Christo