How to handle Firebase from Arduino?

Background: I have a sensor connected to the arduino readings via a serial monitor. I want to write them to firebase.

I did a bit of work on this, and my research showed me that arduino simply cannot handle SSL in order to talk to firebase correctly.

Any suggestions for workarounds? The SO and google check appeared only β€œcannot be done”, but I decided that I would ask anyway. Any lateral thinking is appreciated, thanks!

+4
source share
4 answers

Here's a php script I have whipped up to solve for Arduino no https. This is basically a form that GETS a PHP script and then sends it to your Firebase database. HTTP-> PHP-> Firebase

https://github.com/robertcedwards/httpFirebase

* Make sure you add Heroku or your server to the whitelist of IP addresses that can send Firebase messages

+3
source

If you find out a way, let us know ( support@firebase.com ). It will be a terrific hack!

Some thoughts:

  • You might want to explore Spark Core (available for pre-order). They mention SSL support, although it is not clear to me what exactly this means.
  • You can proxy requests through a server that can speak SSL. For example, you can start a small node.js service in an Amazon EC2 field that simply proxies Firebase REST requests (for example, using http-proxy ).
  • If you're hardcore, you can try getting Arduino to talk to an external Ethernet controller that has built-in SSL support (like this one ), but this is probably a big project. :-)

In the long run, we can provide an endpoint without SSL for Firebase requests specifically designed for this kind of low-cost hardware application. Send us a request for support@firebase.com if you want to start a dialogue.

+7
source

I know his old question, but google visitors keep coming.

Take a look at this post: http://www.devacron.com/arduino-firebase/

+1
source

[Changed]

These arduino libraries can help:

firebase-arduino

To install it:
Download the zip file, go to Sketch> Library Management> Add .zip file

You now have access to

#include <FirebaseArduino.h> 

and can start using it with

 Firebase.begin("example.firebaseio.com", "token_or_secret"); 

Follow the example https://github.com/ed7coyne/firebase-arduino/blob/master/examples/FirebaseDemo_ESP8266/FirebaseDemo_ESP8266.ino

+1
source

Source: https://habr.com/ru/post/1494837/


All Articles