I am trying to connect Apple homekit to nodemcu board, I found a tutorial which works on my computer, but I am wonder if there is any way to load and run Node.JS on a NodeMCU board (ESP8266)?
-
Which OS are you running on it?Dai– Dai2015-08-30 20:52:31 +00:00Commented Aug 30, 2015 at 20:52
-
In the nodeMCU I´m running the following firmware nodelua.org/assets/uploads/2014/12/nodelua_8266.fw And my desktop is running MacOS10.9jezuz– jezuz2015-08-30 21:00:43 +00:00Commented Aug 30, 2015 at 21:00
-
I would like to implement this github.com/KhaosT/HAP-NodeJS on nodeMCU boardjezuz– jezuz2015-08-30 21:03:22 +00:00Commented Aug 30, 2015 at 21:03
Add a comment
|
2 Answers
You can run Espruino on it. I have the HiLetgo NodeMCU ESP-12E Module and was easily able to load the firmware.
- Download and install flasher https://github.com/thingsSDK/flasher.js
- Press and hold the flash button press the reset button once. It will flash once.
- Open up flasher app and flash the firmware for Espruino.
- Unplug the esp8266 and plug it back in
- download the web ide for Espruino https://chrome.google.com/webstore/detail/espruino-web-ide/bleoifhkdalbjfbobjackfdifdneehpo?hl=en
- Change the baud rate Settings --> Communications --> Baud Rate 115200
- Connect and enjoy!
Some samples to try out
1 Comment
Vladimir Jovanović
Simple and easy and works on NodeMCU v0.9 running JavaScript. Thanks!
I think you're confusing nodemcu, which is a firmware for the ESP8266 boards that interprets the language lua, with the javascript runtime node.js, which runs on computers.
So, the answer is you cannot run node.js on an ESP8266.
1 Comment
jezuz
I think you are right. I will try to use raspberry as a server and ESP8266 as client. Thanks!