I need to make a simple proof of concept, having an Arduino or ESP32 with a couple of LEDs than can be turned on/off via browser.
There are a lot of examples about having a small server in the Arduino and accessing it via browser. However for my project I want to use an MQTT broker.
The part where the Arduino updates the LED when a value is changed in the MQTT server is done and works well.
However what I need now it a way of posting a message to the MQTT server just by accessing a website.
Something like: if you open the following link the LED will turn ON: www.mymqttserverdomain.com?LED1=1