Connect to Firebase #1438
Replies: 9 comments
-
Posted at 2017-06-05 by @gfwilliams The firebase js file is 360kB, and most Espruino devices have in the region of 50kB available RAM, so there's no way you can use the lib directly. It sounds like you might be trying to use just a bare ESP8266? In that case you'll have even less memory available. Potentially you could try to use tree-shaking tools to strip out the bits you're not using, but I think this is more effort that doing it directly, and you're very unlikely to get it small enough that you could run other code as well. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-01-19 by Will Maybe this is now possible on some of the larger devices such as the ESP 32? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-01-19 by JumJum You could try ESP32 WROVER board, which has additional PSRAM. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-01-21 by @gfwilliams Just to add, it'll be pretty easy to use firebase on any Espruino board that supports HTTPS using their REST API: https://firebase.google.com/docs/reference/rest/database/ It's just the firebase library that is itself too big. If someone wrote a more sensible library for Espruino that interfaced to that then it should only take a few kb, and I'd be happy to host it on the Espruino site. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-12 by dumdum this thread is old, but just thought it's worth while stressing what @gfwilliams mentioned above: ------- edit ---------- |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-12 by @MaBecker check this conversation |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-13 by dumdum thanks @MaBecker, but I already wrote a simple node 5 liner that fits my needs ;) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-13 by @MaBecker cool, do you like to share it? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-13 by dumdum a bit more than 5 lines actually
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-06-05 by daveamit
Hi,
I understand that Espruino is not a ful-fledge node.js env. And I understand that ws is part of the package, and I can use it to connect to a ws server and do stuff on diff. events.
My question is, is there a way to use firebase lib directly ? This will save me some work-arounds or writing my own ws wrapper on a saperate server to host websockets to which i'll connect from the esp8266.
Any ideas are welcome.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions