O sketch usa 65954 bytes (204%) de espaço de armazenamento para programas. O máximo são 32256 bytes.text section exceeds available space in board
Variáveis globais usam 2145 bytes (104%) de memória dinâmica, deixando -97 bytes para variáveis locais. O máximo são 2048 bytes.
Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.
O codigo:
#include <WiFi.h>
#if defined(ESP32)
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#endif defined(ESP8266)
#include <Firebase_ESP_Client.h>
#include <addons/TokenHelper.h>
#include <addons/RTDBHelper.h>
#define WIFI_SSID ""
#define WIFI_PASSWORD ""
#define API_KEY ""
#define DATABASE_URL ""
#define USER_EMAIL "***"
#define USER_PASSWORD ""
FirebaseData fbdo;
FirebaseAuth auth;
FirebaseConfig config;
unsigned long sendDataPrevMillis = 0;
unsigned long count = 0;
void setup(){
Serial.begin(115200);
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
while (WiFi.status() != WL_CONNECTED)
config.api_key = API_KEY;
auth.user.email = USER_EMAIL;
auth.user.password = USER_PASSWORD;
config.database_url = DATABASE_URL;
config.token_status_callback = tokenStatusCallback;
Firebase.begin(&config, &auth);
Firebase.reconnectWiFi(true);
Firebase.setDoubleDigits(5);
config.timeout.serverResponse = 10 * 1000;
}
void loop(){
// put your main code here, to run repeatedly:
{ if (Firebase.ready() && (millis() - sendDataPrevMillis > 15000 || sendDataPrevMillis == 0))
{
sendDataPrevMillis = millis();
bool bVal;
int iVal = 0;
FirebaseJson json;
if (count == 0)
{
json.set("value/round/" + String(count), F("cool!"));
json.set(F("value/ts/.sv"), F("timestamp"));
}
else
{
json.add(String(count), F("smart!"));
}
}
}
}
Obs: tirei os dados da internet, senha, etc!
Agradeço desde já!