Created
January 14, 2019 18:14
-
-
Save verticalgrain/41c10366f7bbffe93186a339df065c7d to your computer and use it in GitHub Desktop.
Cheat Sheet for FirebaseArduino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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