Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Aditya Tannu
#36545 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?
User avatar
By kolban
#36553 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.
User avatar
By Aditya Tannu
#36611
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?