Hi, I'm very new to Arduino and am doing a project using one. I need to push data from sensors up to firebase. To start off, I am trying to assign a float to a varaible but I keep getting an error.
In file included from C:\Users\Karl_\Documents\Arduino\sketch_mar01d\sketch_mar01d.ino:4:0:
C:\Users\Karl_\Documents\Arduino\libraries\firebase-arduino-master\src/FirebaseArduino.h:20:10: fatal error: string: No such file or directory
#include <string>
^~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Arduino Uno WiFi Rev2.
This library can only be used with the Arduino boards that use an ESP8266 microcontroller. Your Uno WiFi Rev2 uses the ATmega4809 microcontroller instead. This is the cause of the error.
I see there is another FireBase library that claims compatibility with the Uno WiFi Rev2:
You can install it using the Arduino IDE Library Manager:
Select Sketch > Include Library > Manage Libraries... from the Arduino IDE menus.
Wait for the update to finish.
In the "Filter your search" field, type Firebase Arduino based on WiFiNINA
Press Enter.
Scroll down through the list of libraries until you see "Firebase Arduino based on WiFiNINA by Mobizt". Click on it.
Click the Install button.
You may now get a dialog asking:
Would you like to install also all the missing dependencies?
If so, click the Install all button.
Wait for the installation to finish.
Click the Close button.
You will now find example sketches that demonstrate the usage of the library under the File > Examples > Firebase Arduino based on WiFiNINA menu in the Arduino IDE.
Does anyone know if I need to make the path that I have specified above or will it automatically create it?
When I run the code, it connects to wifi, okay but I get an error, not found, 404 Not Found when I try sending a double with the code above.
Would be grateful for any assistance
I have similar issue, see my post “Missing avr-glibc”. The megaavr framework the Rev 2 uses doesn’t include the C standard library headers (like <string.h>) or is missing a compiler directive or something. I’ve seen similar posts on Atmel Studio blogs where people are targeting the Rev 2. If someone has a solution that’d be great because none of my apps that reference the cstdlib files will compile for the Rev 2, but do just fine on avr/samd boards.