solisy.blogg.se

Nodemcu smart timer
Nodemcu smart timer








nodemcu smart timer

Val3=Firebase.getString("S3").toInt() //Reading the value of the varialble Status from the firebase If(val2=1) // If, the Status is 1, turn on the Relay2Įlse if(val2=0) // If, the Status is 0, turn Off the Relay2 Val2=Firebase.getString("S2").toInt() //Reading the value of the varialble Status from the firebase If(val1=1) // If, the Status is 1, turn on the Relay1Įlse if(val1=0) // If, the Status is 0, turn Off the Relay1

nodemcu smart timer

Val1=Firebase.getString("S1").toInt() //Reading the value of the varialble Status from the firebase

#Nodemcu smart timer serial

Serial.begin(115200) // Select the same baud rate if you want to see the datas on Serial MonitorįtInt("S1",0) //Here the varialbe"S1","S2","S3" and "S4" needs to be the one which is used in our Firebase and MIT App Inventor #define WIFI_PASSWORD "20244064" // your WiFi PASSWORD #define WIFI_SSID "TP-LINK_CD2ED6" // your WiFi SSID for which yout NodeMCU connects #define FIREBASE_AUTH "WljQ8JpTdYqUAnp7VCPgcOshaL90zJtvW83NHAov" // Your Firebase Database Secret goes here #define FIREBASE_HOST "" // Your Firebase Project URL goes here without "http:", "\" and "/" Hence, the Node MCU receives and interprets the received data and performs the switching operation of electrical devices that are connected with the Relays. The transmitted data is then received by the wifi module connected with the Node MCU. The data sent from the IoT Android App to the Firebase realtime database, which is hosted in the cloud. The core component of this “Smart Home Automation system” is Node MCU which is considered as a brain or controlling device of the system.










Nodemcu smart timer