Closed manariamantion closed 7 months ago
### geting error at compile time
Using board 'esp32' from platform in folder: release_v5.1-3662303f31/esp32/flags/cpp_flags" -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/defines" "-IC:\Users\GABBAR\AppData\Local\Temp\.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a" -iprefix "C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/include/" "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/includes" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/qio_qspi/include" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\cores\esp32" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\variants\esp32" "-C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFiClientSecure\src" "@C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D/build_opt.h" "@C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D/file_opts" "c:\Users\GABBAR\Documents\Arduino\libraries\FirebaseClient-"@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/cpp_flags" -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/defines" "-IC:\Users\GABBAR\AppData\Local\Temp\.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a" -iprefix "C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/include/" "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/includes" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/qio_qspi/include" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\cores\esp32" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\variants\esp32" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFi\src" "-Ic:\Users\GABBAR\Documents\Arduino\libraries\FirebaseClient-main\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\FS\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\Update\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFiClientSecure\src" "@C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D/build_opt.h" "@C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D/file_opts" "C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\Update\src\Updater.cpp" -o nul
"C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-12.2.0_20230208/bin/xtensa-esp32-elf-g++" -c "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/cpp_flags" -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/defines" "-IC:\Users\GABBAR\AppData\Local\Temp\.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a" -iprefix "C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/include/" "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/includes" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/qio_qspi/include" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\cores\esp32" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\variants\esp32" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFi\src" "-Ic:\Users\GABBAR\Documents\Arduino\libraries\FirebaseClient-main\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\FS\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\Update\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFiClientSecure\src" "@C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D/build_opt.h" "@C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D/file_opts" "C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp" -o nul
"C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-12.2.0_20230208/bin/xtensa-esp32-elf-g++" -c "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/cpp_flags" -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/defines" "-IC:\Users\GABBAR\AppData\Local\Temp\.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a" -iprefix "C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/include/" "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/includes" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/qio_qspi/include" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\cores\esp32" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\variants\esp32" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFi\src" "-Ic:\Users\GABBAR\Documents\Arduino\libraries\FirebaseClient-main\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\FS\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\Update\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFiClientSecure\src" "@C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D/build_opt.h" "@C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D/file_opts" "C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFiClientSecure\src\ssl_client.cpp" -o nul
Generating function prototypes...
"C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-12.2.0_20230208/bin/xtensa-esp32-elf-g++" -c "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/cpp_flags" -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/defines" "-IC:\Users\GABBAR\AppData\Local\Temp\.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a" -iprefix "C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/include/" "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/includes" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/qio_qspi/include" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\cores\esp32" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\variants\esp32" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFi\src" "-Ic:\Users\GABBAR\Documents\Arduino\libraries\FirebaseClient-main\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\FS\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\Update\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFiClientSecure\src" "@C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D/build_opt.h" "@C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D/file_opts" "C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D\sketch\sketch_mar15a.ino.cpp" -o "C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Users\GABBAR\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-12.2.0_20230208/bin/xtensa-esp32-elf-g++" -MMD -c "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/cpp_flags" -w -Os -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/defines" "-IC:\Users\GABBAR\AppData\Local\Temp\.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a" -iprefix "C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/include/" "@C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/flags/includes" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-3662303f31/esp32/qio_qspi/include" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\cores\esp32" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\variants\esp32" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFi\src" "-Ic:\Users\GABBAR\Documents\Arduino\libraries\FirebaseClient-main\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\FS\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\Update\src" "-IC:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFiClientSecure\src" "@C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D/build_opt.h" "@C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D/file_opts" "C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D\sketch\sketch_mar15a.ino.cpp" -o "C:\Users\GABBAR\AppData\Local\Temp\arduino-sketch-EAAA463448EE51D7813708F4B899258D\sketch\sketch_mar15a.ino.cpp.o"
C:\Users\GABBAR\AppData\Local\Temp.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a\sketch_mar15a.ino:130:1: error: 'RealtimeDatabase' does not name a type
130 | RealtimeDatabase Database;
| ^~~~
C:\Users\GABBAR\AppData\Local\Temp.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a\sketch_mar15a.ino: In function 'void setup()':
C:\Users\GABBAR\AppData\Local\Temp.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a\sketch_mar15a.ino:100:31: error: unable to find string literal operator 'operator""r4jm3n4ri4' with 'const char [1]', 'unsigned int' arguments
100 | #define WIFI_SSID ""r4jm3n4ri4""
| ^~
C:\Users\GABBAR\AppData\Local\Temp.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a\sketch_mar15a.ino:100:31: note: in definition of macro 'WIFI_SSID'
100 | #define WIFI_SSID ""r4jm3n4ri4""
| ^~
C:\Users\GABBAR\AppData\Local\Temp.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a\sketch_mar15a.ino:101:35: error: unable to find string literal operator 'operator""r4jm3n4ri4' with 'const char [1]', 'unsigned int' arguments
101 | #define WIFI_PASSWORD ""r4jm3n4ri4""
| ^~
C:\Users\GABBAR\AppData\Local\Temp.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a\sketch_mar15a.ino:101:35: note: in definition of macro 'WIFI_PASSWORD'
101 | #define WIFI_PASSWORD ""r4jm3n4ri4""
| ^~
C:\Users\GABBAR\AppData\Local\Temp.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a\sketch_mar15a.ino:169:16: error: 'RealtimeDatabase' was not declared in this scope
169 | app.getApp~~~
C:\Users\GABBAR\AppData\Local\Temp.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a\sketch_mar15a.ino:169:34: error: 'Database' was not declared in this scope
169 | app.getApp~~~
C:\Users\GABBAR\AppData\Local\Temp.arduinoIDE-unsaved2024215-7584-1e2q75c.kwzlh\sketch_mar15a\sketch_mar15a.ino:176:32: error: expected primary-expression before 'int'
176 | bool status = Database.set~~~
Using library WiFi at version 2.0.0 in folder: C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFi Using library FirebaseClient-main at version 0.1.3 in folder: C:\Users\GABBAR\Documents\Arduino\libraries\FirebaseClient-main Using library FS at version 2.0.0 in folder: C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\FS Using library Update at version 2.0.0 in folder: C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\Update Using library WiFiClientSecure at version 2.0.0 in folder: C:\Users\GABBAR\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\WiFiClientSecure exit status 1
Compilation error: 'RealtimeDatabase' does not name a type
The error was fixed. You can update the FirebaseClient library with latest files.
this is example code that provide with library, only cradential change but way got this error, plz tell what i did wrong
include
if defined(ESP32) || defined(ARDUINO_RASPBERRY_PI_PICO_W)
include
elif defined(ESP8266)
include
elif __has_include()
include
elif __has_include()
include
elif __has_include()
include
endif
include
if defined(ESP8266) || defined(ESP32)
include
endif
define WIFI_SSID ""r4jm3n4ri4""
define WIFI_PASSWORD ""r4jm3n4ri4""
// The API key can be obtained from Firebase console > Project Overview > Project settings.
define API_KEY "XXXXXXXX"
// User Email and password that already registerd or added in your project.
define USER_EMAIL "rajmenaria1985@gmail.com"
define USER_PASSWORD "XXXXXXXX"
define DATABASE_URL "XXXXXXXX"
void printError(int code, const String &msg);
void asyncCB(AsyncResult &aResult);
DefaultNetwork network; // initilize with boolean parameter to enable/disable network reconnection
UserAuth user_auth(API_KEY, USER_EMAIL, USER_PASSWORD);
FirebaseApp app;
WiFiClientSecure ssl_client;
// In case the keyword AsyncClient using in this example was ambigous and used by other library, you can change // it with other name with keyword "using" or use the class name AsyncClientClass directly.
using AsyncClient = AsyncClientClass;
AsyncClient aClient(ssl_client, getNetwork(network));
RealtimeDatabase Database;
void setup() {
if defined(ESP8266)
endif
}
void loop() { // This function is required for handling async operations and maintaining the authentication tasks. app.loop();
}
void asyncCB(AsyncResult &aResult) { if (aResult.appEvent().code() > 0) { Serial.println("**"); Serial.printf("Event msg: %s, code: %d\n", aResult.appEvent().message().c_str(), aResult.appEvent().code()); }
}
void printError(int code, const String &msg) { Serial.printf("Error, msg: %s, code: %d\n", msg.c_str(), code); }