How can webserver send data to ESP32?

francinnov
Posts: 6
Joined: Tue Nov 06, 2018 9:07 am

How can webserver send data to ESP32?

Postby francinnov » Fri Nov 09, 2018 10:00 am

Hello,

I have an Arduino uno which communicates via UART with an ESP32 (WROOM-32) board. The ESP32 sends any update coming from the Arduino via POST request to my webserver.

From my webserver, I would like to send data to my ESP32 to update the Arduino UNO actions.

I'm not a specialist about HTTP protocol.
In a first approach, I wanted to make my webserver sends a POST request to my ESP32 which would store, in a variable, the data received.
  • First question : Is it possible to send POST request to an ESP32 from a webserver ?
  • Second question : Do you have any other idea, how to send data from my webserver to my ESP32 board ?
Thank you very much,

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: How can webserver send data to ESP32?

Postby WiFive » Fri Nov 09, 2018 10:15 am

Websocket or Mqtt

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: How can webserver send data to ESP32?

Postby chegewara » Fri Nov 09, 2018 10:35 am

Also if its not important to change UNO params in real time you can pool every minute, hour or so webserver and get response with new data for UNO.

francinnov
Posts: 6
Joined: Tue Nov 06, 2018 9:07 am

Re: How can webserver send data to ESP32?

Postby francinnov » Fri Nov 09, 2018 10:51 am

Thank you both of you for your answers !

Who is online

Users browsing this forum: No registered users and 60 guests