Connecting Thunkable App to ESP8266 with Firebase for Relay Control

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?

Hi sarazizzettai9csc8, welcome to Thunkable! :tada:

Be sure to check out How to ask Great Questions v2.0, the Community Guidelines, and our Getting Started Guide to make the best of your Thunkable Community experience!

Apologies if I am misunderstanding, is your query about whether you can use Thunkable to connect and transmit data to the ESP8266 via WiFi?