Firebase and Arduino Uno WiFi

Please feedback the issue encountered while using Cytron official website (http://www.cytron.com.my), Cytron Technical Forum and Cytron Tutorial site (http://tutorial.cytron.com.my) here. We greatly appreciate any comments and suggestions too.

Firebase and Arduino Uno WiFi

Postby olivbe » Mon Mar 22, 2021 5:52 pm

Hi,
I followed scrupulously instructions in :
Send Data to Firebase Using Arduino Uno WiFi Rev2
tutorial, (great tutorial thank you Idris) but unfortunately when running the program i got following error message :
Error: not found, 404 not found message emanating from line 80 of the program.
I have tried on a Linux machine as normal user and root with the same result.
What can I do to fix the thing.
Thanks, regards.
olivbe
Greenhorn
 
Posts: 3
Joined: Mon Mar 22, 2021 5:27 pm

Re: Firebase and Arduino Uno WiFi

Postby Idris » Tue Mar 23, 2021 11:11 am

Hi olivbe,

Could you verify again that you entered the correct FIREBASE_HOST and FIREBASE_AUTH?
Maybe you can share a screenshot of your Arduino IDE Serial Monitor.

Thanks.
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 409
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang

Re: Firebase and Arduino Uno WiFi

Postby olivbe » Tue Mar 23, 2021 5:23 pm

Hi Idris,

Thank you for your feedback.

I did enter the correct FIREBASE_HOST and FIREBASE_AUTH.
Below is copy and paste of Serial Monitor window content.

10:07:13.673 ->
10:07:13.673 -> Initialize IMU sensor... done
10:07:13.706 -> Accelerometer sample rate = 104.00 Hz
10:07:13.739 -> Connecting to WiFi.... IP: 192.168.1.39
10:07:17.824 ->
10:07:17.824 -> IMU present
10:07:20.016 -> ...the path choice seems to be not working
10:07:23.905 -> {"X":0.008057,"Y":-0.017456,"Z":0.999878}
10:07:25.867 -> Error: not found, 404 Not Found
10:07:25.900 -> Olala
10:07:25.933 ->
10:07:27.861 -> IMU present
10:07:29.788 -> ...the path choice seems to be not working
10:07:33.743 -> {"X":0.007813,"Y":-0.016235,"Z":1.007446}
10:07:35.703 -> Error: not found, 404 Not Found
10:07:35.736 -> Olala

Note that extra lines are present like
...the path choice seems to be not working and
Olala

since I added as an attempt to debug the program some Serial.println lines like :

// Send data to Firebase with specific path
if (Firebase.setFloat(firebaseData, path + "/1-setFloat/X", x)) {
Serial.println(firebaseData.dataPath() + " = " + x);
}
else {
Serial.println("...the path choice seems to be not working");
}

Thanks again, regards
olivbe
Greenhorn
 
Posts: 3
Joined: Mon Mar 22, 2021 5:27 pm

Re: Firebase and Arduino Uno WiFi

Postby olivbe » Thu Mar 25, 2021 5:56 am

Hi Idris,

You were right Idris, problem was in FIREBASE_HOST :
I had entered name of database copied from the Project settings window as suggested in video, it was :
ard-wifi-2
but I should have entered
ard-wifi-2-default-rtdb ahead of .firebaseio.com as present in realtime database window.

When line 13 of your program Idris was
#define FIREBASE_HOST "ard-wifi-2-default-rtdb.firebaseio.com"
it worked like a charm.

Thanks again, regards
olivbe
Greenhorn
 
Posts: 3
Joined: Mon Mar 22, 2021 5:27 pm

Re: Firebase and Arduino Uno WiFi

Postby Arnaud » Tue Jan 10, 2023 9:33 am

Hello thank you for this addition it also helped me a lot to start the program and see the first movements on the database Dris's tutorial is simple and fast thank you for that, moreover on this subject I made a big web application but that uses firestore and not real time database, do you believe that a library exists for firestore as well? if not do you think it is possible to communicate between the two types of databases to migrate data from RTDB => Firestore database? I would appreciate any advice on this subject so that I can do better research on the subject?
Arnaud
Fledgling
 
Posts: 1
Joined: Tue Jan 10, 2023 9:25 am


Return to Cytron Website, Forum & Tutorial Site Feedback

Who is online

Users browsing this forum: No registered users and 1 guest