ESP32 Error on HTTP request

Post Reply
bryan_aoi
Noob
Posts: 2
Joined: Mon May 27, 2019 12:19 pm

ESP32 Error on HTTP request

Post by bryan_aoi » Mon May 27, 2019 12:25 pm

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

Guru
Simple
Posts: 21
Joined: Tue Dec 18, 2018 11:36 pm
Contact:

Re: ESP32 Error on HTTP request

Post by Guru » Mon May 27, 2019 3:39 pm

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.

bryan_aoi
Noob
Posts: 2
Joined: Mon May 27, 2019 12:19 pm

Re: ESP32 Error on HTTP request

Post by bryan_aoi » Wed May 29, 2019 6:57 am

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/".

Guru
Simple
Posts: 21
Joined: Tue Dec 18, 2018 11:36 pm
Contact:

Re: ESP32 Error on HTTP request

Post by Guru » Wed May 29, 2019 9:48 am

Great!

All the best,
The AskSensors Team.

Post Reply