firebase host 3 : realtime update


I have done arduino data upload to firebase realtime, and trying to figure out how the data can be read and updated from other sites, such as a web server.


The method used by firebase is web socket, so you can issue a http request with the key and get the value, of course the return will be a json.
you will able to add, or set data as well as read. which means beside reading value and post on website, you can also set the data, to turn on or off something.

since it's a socket, you can also get update from firebase once there is a child add, or child change.


reference:
This one gives a complete demo from DHT sensor to firebase hosting website showing temp and humidity.
https://www.freecodecamp.org/news/iot-prototyping-with-firebase-doing-more-with-less-2f5c746dac8b/

This one use website to control chrismas lights.
https://medium.com/firebase-developers/using-firebase-to-control-your-arduino-project-over-the-web-ba94569d172c


留言

這個網誌中的熱門文章

Heltec ESP32+OLED+Lora, hardware testing

micro SD card for ESP32, on lolin32 with OLED and heltec 32 lora oled

Install Network Time Protocol(NTP) on BeagleBone with Angstrom linux and set local time zone