Sir Maine ek chhota sa app banaya hai usme maine toggle button ka use kiya hai aur firebase se connect kiya hai , aur jaise mai usko enable akrta hoon to firebase me true bhej raha hoon aur jaise hi usko disable kar raha hoon to firebase me false bhej raha hoon , mera ek chhota sa question ye hai sir ki agar mai firebase me true kar du to toggle button app me bhi enable ho jaye aur jaise hi firebase me false karu vaise hi app me toggle button disable ho jaye matlab ki reverse ligic kaise kare sir please help me bahut logo ke pass comment kiya sir but koi reply nahi de raha hai please help me sir
Thank you for your awesome tutorial. It's all been well explained and easy to understand. I just have a little question. How can I use multiple NodeMCU to the Firebase? How do I control a NodeMCU while not controlling the other NodeMCUs that are also connected to my Firebase database?
i m really glad to hear it, for connecting multiple nodemcu connect all of them with Firebase database and then assign some variables to each nodemcu like : Node1: Node2: and perform operations on them
have you ever work on android broker such as moquette or something like that ? when we have one esp8266 and we want to connet to it with 20 mobile phone what happen? each esp8266 or esp 12e can just have 8 TCP/ UDP connection what's your idea if we have 20 mobile phones and simultaneous they want to connect to one esp publisher? if we run an android broker on one of mobile phones and other connect to it we can connect to esp by one TCP/UDP from broker to esp, is it true? have you ever work on android broker such as moquette or something like that ? and we don't have any cloud on the net!!!!
Hello again! Sir :) I have a question plz. If I'd like to use characters in the Ardunio IDE code to control the LED instead of ( 0 & 1 ) How could I do that?
Hey sorry for late reply and check out Arduino code in this blog here i m dealing with strings : www.hackanons.com/2018/07/iot-with-firebase-home-automation-light.html?m=1
This happened for me at the beginning and this's what I did to fix it First of all, make sure you include the correct link of your database within your app with "/" and "https" for example Firebase("##########.firebaseio.com/"); 2. instead of this part of the code "On create" // Write a message to the database FirebaseDatabase database = FirebaseDatabase.getInstance(); DatabaseReference myRef = database.getReference("LED Status"); myRef.setValue(1); try this down below on.setOnClickListener(new View.OnClickListener() { @Override public void OnClick(View view) { Firebase mRefChild = mRef.child("LED Status"); mRefChild.setValue(1); } // to turn the LED on hope this would help
bro when i upload my firebase code in nodemcu after that serial monitor shows setting failed and value is not uploading on firebase plz help me out from this problem. i am using window 10 and arduino IDE 1.6.9.
I had similar problem. Here's the solution after you add (firebase-arduino library)! you can go to this link github.com/FirebaseExtended/firebase-arduino and down there go to "Dependencies" and download (ArduinoJson library).zip and add it to your Arduino IDE. upload your code again. and it will work
bro when i upload my firebase code in nodemcu after that serial monitor shows setting failed and value is not uploading on firebase plz help me out from this problem im using window 10 and ide 1.6.9
Sir Maine ek chhota sa app banaya hai usme maine toggle button ka use kiya hai aur firebase se connect kiya hai , aur jaise mai usko enable akrta hoon to firebase me true bhej raha hoon aur jaise hi usko disable kar raha hoon to firebase me false bhej raha hoon , mera ek chhota sa question ye hai sir ki agar mai firebase me true kar du to toggle button app me bhi enable ho jaye aur jaise hi firebase me false karu vaise hi app me toggle button disable ho jaye matlab ki reverse ligic kaise kare sir please help me bahut logo ke pass comment kiya sir but koi reply nahi de raha hai please help me sir
Thanks a lot man, appreciated your contributions :)
I am glad to help you out 😋
Bro how to use toggle button using this project please help me
Thank you for your awesome tutorial. It's all been well explained and easy to understand. I just have a little question. How can I use multiple NodeMCU to the Firebase? How do I control a NodeMCU while not controlling the other NodeMCUs that are also connected to my Firebase database?
i m really glad to hear it, for connecting multiple nodemcu connect all of them with Firebase database and then assign some variables to each nodemcu
like :
Node1:
Node2:
and perform operations on them
Thank you very much for quick response! I'm amazed. I'll try to add variables and will let you know if it works!
does status keep's updating while turning led (on/off) in firebase realtime database??
Yes
have you ever work on android broker such as moquette or something like that ?
when we have one esp8266 and we want to connet to it with 20 mobile phone what happen?
each esp8266 or esp 12e can just have 8 TCP/ UDP connection
what's your idea if we have 20 mobile phones and simultaneous they want to connect to one esp publisher?
if we run an android broker on one of mobile phones and other connect to it we can connect to esp by one TCP/UDP from broker to esp, is it true?
have you ever work on android broker such as moquette or something like that ?
and we don't have any cloud on the net!!!!
No i haven't worked on any android broker
what all changes are required if we have to create a application for controlling more than one device
can u give me code for servo like this
im error : Error compiling for board NodeMCU 1.0 (ESP-12E Module).
where is the code in arduino IDE for nodemcu?
Hello again! Sir :) I have a question plz. If I'd like to use characters in the Ardunio IDE code to control the LED instead of ( 0 & 1 ) How could I do that?
Hey sorry for late reply and check out Arduino code in this blog here i m dealing with strings :
www.hackanons.com/2018/07/iot-with-firebase-home-automation-light.html?m=1
It's Ok Sir. You saved my day. Thank you so much :)
This was so useful ... big thumb up
what is the way of with only one button one click "on" then 1 second delay after '"off"
Nice tutorial 👍
i m glad to help you out :)
Sir this app is not working in the mobile phone.Can you suggest me what are the changes that i should do???
Sir answer? ?
This happened for me at the beginning and this's what I did to fix it
First of all, make sure you include the correct link of your database within your app with "/" and "https" for example Firebase("##########.firebaseio.com/");
2. instead of this part of the code "On create"
// Write a message to the database
FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference myRef = database.getReference("LED Status");
myRef.setValue(1);
try this down below
on.setOnClickListener(new View.OnClickListener() {
@Override
public void OnClick(View view) {
Firebase mRefChild = mRef.child("LED Status");
mRefChild.setValue(1); } // to turn the LED on
hope this would help
if u did all the tutorial u will get it
Thank you so much.!
I am glad to hear it 😋
carryy onn bro :)
bro when i upload my firebase code in nodemcu after that serial monitor shows setting failed and value is not uploading on firebase plz help me out from this problem. i am using window 10 and arduino IDE 1.6.9.
it solution for you problem
can i get the apk form my projek?
implementation 'com.android.support:appcompat-v7:28.0.0' getting error on this can you help me out ???
downgrade it
use v7:27.1.1
my app is not working. followed every step. please help
X2
Bro now nodemcu is not connecting with firebase console after the updates of firebase have any solution?
let me check it out
please reply me soon i want to complete my project
you should try on edit of firebase RULES null = true
bro i have tried it ,firebase is working fine with nodemcu
I had similar problem. Here's the solution
after you add (firebase-arduino library)! you can go to this link github.com/FirebaseExtended/firebase-arduino and down there go to "Dependencies" and download (ArduinoJson library).zip and add it to your Arduino IDE. upload your code again. and it will work
Thanks man
Your most welcome 😊
how can i install firebase to android studio?
yes check previous video i have shown der
Sir when i run the app it autocloses any solutions?
Nvm i solved it by updating and adding the firebase core 😂
That's great
Is it possible to have an indicator that the esp8266 is connected to the database? In the app?
I have check it out, i vll let you know once done
Thanks looking forward to it 😃
It's not working bro
This is Java not Kotlin
Yes
Wheres the Arduino code? xD
In previous video
In part 1?
No i part 2 : www.hackanons.com/2018/03/iot-with-firebase-control-led-using.html
Thanks bro
I m really glad to hear it :)
my java is error.even though I have followed the steps
Which error u r getting
bro when i upload my firebase code in nodemcu after that serial monitor shows setting failed and value is not uploading on firebase plz help me out from this problem im using window 10 and ide 1.6.9
How we can use it for esp32