12

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)?

3
  • Which OS are you running on it? Commented 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.9 Commented Aug 30, 2015 at 21:00
  • I would like to implement this github.com/KhaosT/HAP-NodeJS on nodeMCU board Commented Aug 30, 2015 at 21:03

2 Answers 2

29

You can run Espruino on it. I have the HiLetgo NodeMCU ESP-12E Module and was easily able to load the firmware.

  1. Download and install flasher https://github.com/thingsSDK/flasher.js
  2. Press and hold the flash button press the reset button once. It will flash once.
  3. Open up flasher app and flash the firmware for Espruino.
  4. Unplug the esp8266 and plug it back in
  5. download the web ide for Espruino https://chrome.google.com/webstore/detail/espruino-web-ide/bleoifhkdalbjfbobjackfdifdneehpo?hl=en
  6. Change the baud rate Settings --> Communications --> Baud Rate 115200
  7. Connect and enjoy!

Some samples to try out

https://github.com/mertenats/NodeMCU-and-JavaScript

Sign up to request clarification or add additional context in comments.

1 Comment

Simple and easy and works on NodeMCU v0.9 running JavaScript. Thanks!
7

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

I think you are right. I will try to use raspberry as a server and ESP8266 as client. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.