Firebase_ESP_Client firebase upload error #146
-
Hi, im using below code to upload my recorded raw file to firebase storage. but it show this error. Im using Firebase_ESP_Client library. this is the code i used. please help me. `#include <driver/i2s.h> // Firebase configuration // I2S configuration for recording // Wi-Fi and Firebase configurations // Define the push button pin File file; // Create object for HardwareSerial and GPS // Firebase objects Preferences preferences; // Create Preferences object // File counter // Function prototypes void setup() { GPS_Serial.begin(9600, SERIAL_8N1, 16, 17); // Use pins 16 and 17 for RX and TX preferences.begin("counter", false); // Open preferences with the namespace "counter" WiFi.begin(WIFI_SSID, WIFI_PASSWORD); LittleFSInit(); config.api_key = API_KEY; if (Firebase.signUp(&config, &auth, "", "")) { config.token_status_callback = tokenStatusCallback; void loop() {
} if (Firebase.ready() && signupOK) {
} static void smartDelay(unsigned long ms) { void LittleFSInit() { generateNewFileName(); void generateNewFileName() { if (LittleFS.exists("/fileCounter.txt")) { sprintf(filename, "/guardianRecord%d.raw", fileNumber); File counterFile = LittleFS.open("/fileCounter.txt", FILE_WRITE); Serial.printf("New file name generated: %s\n", filename); void i2sInit() { const i2s_pin_config_t pin_config = { void i2s_adc(void* arg) { char* i2s_read_buff = (char*)malloc(i2s_read_len); // Open the file for writing Serial.println(" *** Recording Start *** ");
} // Final flush and close file if (LittleFS.exists(filename)) { Serial.println("Recording complete"); // After recording, upload to Firebase // Resume GPS updates after upload i2s_driver_uninstall(I2S_PORT); // Debug info for file size // Specify the upload path // Attempt the upload |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
You are using deprecated library which no further supports and posting in the wrong repo. |
Beta Was this translation helpful? Give feedback.
Don't be urgently to use this library, you have to spend the time to read the library documentation, playing with all examples then you will get the idea how library works and how to adapt it.
If you use this library in async mode, you have to know that all delay (s) in your code will interrupt the library to work properly.
You can use this library in sync mode as usual too, but you have to follow the examples.