Hello! I need help connecting my Thunkable app to my ESP8266 WiFi module. I’m storing data in Firebase (for user authentication and a real-time database that includes the WiFi SSID and password). In theory, I ask for the WiFi and password in the app, get those values, and store them in Firebase. The ESP8266 retrieves the data from the database, generates its IP address, stores it in the same database, and then creates a couple of HTML pages that can control 3 relays.
The relays are controlled via URLs with the following structure: http://[IP_OF_ESP8266]/relay1/on
(in the Thunkable app, there is a button for each relay). When I click the button to turn the relay on, it should generate a link that ends with /on
or /off
(depending on whether I want to turn it on or off).
What blocks do I need, and in what order, to make this work?