This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
add end to end test with leak check #161
Open
Description
We should have a sketch like this that we run manually (and then automatically #168) for every commit that checks that:
- get/set functions are working
- we don't leak
void setup() {
Serial.begin(9600);
// connect to wifi.
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
Serial.print("connecting");
while (WiFi.status() != WL_CONNECTED) {
Serial.print(".");
delay(500);
}
Serial.println();
Serial.print("connected: ");
Serial.println(WiFi.localIP());
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
}
int n = 0;
void loop() {
Serial.println("loop");
Firebase.setInt("data", n++);
if (Firebase.failed()) {
Serial.println(Firebase.error());
}
int data = Firebase.getInt("data");
if (Firebase.failed()) {
Serial.println(Firebase.error());
}
Serial.print("data: ");
Serial.println(data);
Serial.print("heap: ");
Serial.println(ESP.getFreeHeap());
delay(1000);
}