Page 1 of 1

ESP32 Error on HTTP request

Posted: Mon May 27, 2019 12:25 pm
by bryan_aoi
Hello,

Each time I try to send a data I've got his message on the Arduino IDE serial : "Error on HTTP request"
I've done all the steps correctly and when I enter the url (https://api.asksensors.com/write/ex187S ... module2=98) in a web browser on a computer, I've the number of module as answer as expected.
My board is a Sparkfun ESP32 Thing.
Can someone help me?

Thanks.

Bryan

Re: ESP32 Error on HTTP request

Posted: Mon May 27, 2019 3:39 pm
by Guru
Hello bryan,

1. Are you sending data using this code ? https://github.com/asksensors/AskSensor ... tp_get.ino
2. What about the connection to the to the AskSensors API server, do you see good connection or "connection failed" ?

All the best,
The AskSensors Team.

Re: ESP32 Error on HTTP request

Posted: Wed May 29, 2019 6:57 am
by bryan_aoi
Thanks for your help.
I 've resolved my issue.
Yes I'm using this code, but I had change the url "https://api.asksensors.com/write/" by "http://api.asksensors.com/write/".

Re: ESP32 Error on HTTP request

Posted: Wed May 29, 2019 9:48 am
by Guru
Great!

All the best,
The AskSensors Team.