I'm try to use the Firebase dataChange with web componente, i was following the post here, but i had no sucess.
Let me explain my application.
I've an esp32 getting some data from some switches and sensors, the esp32 send it to Firebase and i need to keep the app (when its openned) updated.
I tried to use the main functions in ai2 to firebase purpose like store, get and dataChange events, but that blocks save the string and the integer variables with "" "" and this stuff doesnt work when i get it in esp32 code, so i used the web component because if i want so save an integer it saves an integer without any sh1t.
I'm looking for a tutorial that explain all the metod to use the dataChange with web component, the event patch and get i already got it.
Here is function to set the html/java script, i just copy the script from the tutorial i said last post, the .html file is in media files and the variable fileLocation is "http://localhost/".