Skip to content
Advertisement

unable to read data from firebase using html

I can see data in a Firebase realtime database from the console but if I try to read this data via HTML/JavaScript it’s not giving me anything. I have tried two different ways; neither worked.

Format of the data:

JavaScript

First way:

JavaScript

Second way:

JavaScript

Advertisement

Answer

The following code resolved the issue and now I get my sensor data:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement