-->
Page 1 of 1

Someday can we run NodeJS on this platform?

PostPosted: Wed Dec 16, 2015 12:01 am
by Aditya Tannu
I'm not a software developer, so this is a rather noob question.

Some day is it possible that we might be able to run a NodeJS or Go app like https://github.com/KhaosT/HAP-NodeJS or http://selfcoded.com/homecontrol/ on ESP8266 or ESP32? These are basically bridges to talk to relatively dumb accessories. They're just faking the HomeKit protocol. I hope someday an ESP8266 will be able to do this too. I understand that NodeJS/Go makes it really easy to do such things, but how difficult would it be to fake such a protocol directly from an ESP8266?

Re: Someday can we run NodeJS on this platform?

PostPosted: Wed Dec 16, 2015 1:58 am
by kolban
There are a number of efforts already underway to make JavaScript available on the ESP8266. These include Smart.js and Espruino. One of the bigger challenges is that the ESP8266 only has a small amount of RAM available to it. With the imminent arrival of the ESP32, things are looking distinctly more hopeful.

Re: Someday can we run NodeJS on this platform?

PostPosted: Wed Dec 16, 2015 3:22 pm
by Aditya Tannu
kolban wrote:There are a number of efforts already underway to make JavaScript available on the ESP8266. These include Smart.js and Espruino. One of the bigger challenges is that the ESP8266 only has a small amount of RAM available to it. With the imminent arrival of the ESP32, things are looking distinctly more hopeful.


Thanks. Do we really need JavaScript for implementing these kinds of APIs. Can't it be done with the existing functionality that the Arduino port has? As I see it, the ESP needs to advertise itself and its characteristics/services over Bonjour. And it needs to respond with appropriate values when queried. Are these kinds of things very difficult without the help of appropriate JavaScript libraries?