Skip to content

Instantly share code, notes, and snippets.

@verticalgrain
Created January 14, 2019 18:14
Show Gist options
  • Save verticalgrain/41c10366f7bbffe93186a339df065c7d to your computer and use it in GitHub Desktop.
Save verticalgrain/41c10366f7bbffe93186a339df065c7d to your computer and use it in GitHub Desktop.
Cheat Sheet for FirebaseArduino
// set value
Firebase.setFloat("number", 42.0);
// update value
Firebase.setFloat("number", 43.0);
// get value
Serial.print("number: ");
Serial.println(Firebase.getFloat("number"));
FirebaseObject pixels = Firebase.get("/rgbdata");
// remove value
Firebase.remove("number");
// set string value
Firebase.setString("message", "hello world");
// set bool value
Firebase.setBool("truth", false);
// append a new value to /logs
String name = Firebase.pushInt("logs", n++);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment