Send data from NodeMCU to Firebase | SSL Fingerprint solved | | ESP8266 with firebase | 2024

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
makers at the end of this video you will be able to store different sensors data from nodemcu or esp3282 to real-time firebase database in different ways in this channel we brought to you different educational and informative videos regularly for free because we didn't monetized yet so let us to monetize by subscribing to our channel your support is appreciated for this project we are going to use firebase esp8266 master arduino library i have already download the library in zip file format you can find the download link to the library in the description of this video after downloading the zip file you need to add the library to your arduino library folder by directly extracting the zip file in your arduino library folder or by following steps mentioned in this video when i tried to add the library it displays a message which says library already exist this is because i have already added the library before now i will try to describe how the code works you can find the source code in the first part of the comment section first we have to import the library which we are going to use those are esp8266 wi-fi and firebase esp8266 we need to define firebase host and firebase auth constants which we are going to use to connect our board with firebase we get those values from our real-time database i have already created a firebase real-time database the step is straightforward so you can create your own database after creating the database press real-time database then you will see a link to the database host this is the value of firebase host we don't have to include https or slash while defining firebase host similarly firebase auth should also be taken from the project go to project settings then navigate to service account now if you press database secrets you will find database secret set this value to firebase authconstant we also need to define wi-fi ssid and wi-fi password with our wi-fi name and password we will be using these constants to connect the esp8266 board with wi-fi to send data to the internet after defining firebase data object and variable val which is used to read sensors data we can proceed to void setup function in the setup function we start serial communication to display data onto serial monitor and we connect the esp8266 board with wi-fi and firebase real-time database using the defined constants on the top part of the code the code will also reconnect the board automatically when it is disconnected on the loop function first you have to read your sensor data with variable val i will be using random number generating function which generate random numbers between 50 and 150 continuously push ind is used to store all sensor readings onto a real-time database the function will accept three arguments those are the object firebase data name of the real-time database collection and the sensor reading in my case val i will also print out a message on the serial monitor to see the result if everything is working fine we will see a success message on serial monitor and the data will be stored on the real-time database collection else if there is any error error message will be displayed and the data cannot be sent to the database keeping everything the same if we change firebase push in with firebase setint the real-time database collection will be updated with the last sensor reading rather than storing all the data after choosing the appropriate port number and board type we need to upload the code onto the board if you do not see node mcu in your board list you need to add via board manager before uploading the code as you see the database as empty after the uploading is done the real-time database automatically create two collections which are storing data and monitoring data storing data will store each sensor readings whereas monitoring data will update its value with the last value of sensor reading you can use one of the two method based upon your project requirement now the database is interfaced successfully you can integrate the database with website or mobile app if you wish if you think this video is helpful do not forget to subscribe thank you for watching
Info
Channel: Makers Group
Views: 3,178
Rating: undefined out of 5
Keywords: firebase, iot, nodemcu, NodeMCU and Firebase | ESP8266, firebase tutorial, firebase arduino library, arduino json, json version, robotics, arduino project, esp8266, wifi module, wifi module with firebase, arduino firebase, esp8266 with firebase, technology, arduino, realtime database, realtime database with nodemcu, arduino iot, nodemcu esp8266 database, top iot, arduino internet, firebase database, free iot, firebase iot, Setting Number Failed, Firebase Connection Failed Error
Id: WxIUfx2xkYw
Channel Id: undefined
Length: 4min 43sec (283 seconds)
Published: Mon Aug 22 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.