s00500 / ESPUI

A simple web user interface library for ESP32 and ESP8266

Home Page:https://valencia.lbsfilm.at/midterm-presentation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to trigger an external API request?

daniel-frenkel opened this issue · comments

This GUI is incredible. I currently use AsyncTCP to trigger GET requests. For example, I'll send this from a different device to trigger a movement.

http://192.168.4.1/position?move=100

Is it possible to send HTTP requests to change the values of something like a slider or switch?

Yes, very possible. I'm doing exactly that with ESPUI.

Port 80 is used by ESPUI, so you'll need to use port 8080 for WiFi Server GET. Other than that, nothing unusual needs to be coded.

BTW, this means your URL would look like this when sending to port 8080:
http://192.168.4.1:8080/position?move=100

  • Thomas

Yes, very possible. I'm doing exactly that with ESPUI.

Port 80 is used by ESPUI, so you'll need to use port 8080 for WiFi Server GET. Other than that, nothing unusual needs to be coded.

BTW, this means your URL would look like this when sending to port 8080: http://192.168.4.1:8080/position?move=100

  • Thomas

Thank you!

That worked out perfectly