Questions tagged [nodemcu]

NodeMCU is an open-source firmware that offers a Lua API for ESP8266, ESP8285, and ESP32. There is also a ESP8266 devkit with the same name. However, questions here should relate to writing Lua code on top of the firmware. Also if you need help understanding the NodeMCU API SO is the right place. Issues with firmware development are best addressed on GitHub. Hardware or general questions can be asked on esp8266.com.

The NodeMCU project is a Lua based firmware that runs directly on ESP8266, ESP8285, and ESP32 hardware, providing a easy and low cost solution. Build-deploy-test cycles are extremely short (contrary to e.g. Arduino) because you only build the firmware once and then simply update scripts on the device.

It provides access to almost all APIs in the Espressif C SDK. Hardware/SDK access is abstracted through close to 60 specific modules. The firmware comes with either integer or floating point support depending on your needs.

975 questions
13
votes
2 answers

NodeMCU Integer vs. Float Firmware what is different?

I was asking myself what are the differences between integer and float firmware and how deal with them. All I've been able to find so far is: the integer version which supports only integer operations and the float version which contains support…
Michi
  • 487
  • 5
  • 20
12
votes
1 answer

Cannot modify example for ESP8266 provided by espressif

My setup consists of the Espressif SDK using eclipse and a nodemcu, which I want to program in C. I have followed all he steps and I can compile and flash the board from the eclipse environment. I don't press any buttons to load the flash because…
morcillo
  • 1,091
  • 5
  • 19
  • 51
12
votes
2 answers

How to run Node.js on esp8266 (Nodemcu dev board)?

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)?
jezuz
  • 413
  • 2
  • 5
  • 13
11
votes
1 answer

Connecting Mobile with ESP8266

I am working on a Home Automation project and I want to connect an Mobile Application to ESP8266. I can Publish a message from Mobile App to AWS server which is setup as a broker. (Working) I can Publish a message from AWS to Raspberry PI.…
Mitul Verma
  • 237
  • 1
  • 15
10
votes
14 answers

How to fix Failed to connect to ESP32: Timed out waiting for packet header error?

I tried to flash an ESP32 but I didn't succeed, I tried with esptool.py and Arduino IDE. I tried to press the boot button and reset but it didn't work. Here is the error: A fatal error occurred: Failed to connect to ESP32: Timed out waiting for…
ri1_
  • 117
  • 1
  • 1
  • 6
10
votes
1 answer

No COM port, no /dev/tty* - tried different OS's, different cables

My devkit is an Amica V3, well two of them and both seem to have the same problem. I tried to get the device to show up to then be able to install the NodeMCU firmware. I did this on different computers and different OS's (Windows 7/10 + OS X…
Pieter
  • 1,751
  • 3
  • 30
  • 65
10
votes
2 answers

Making variables persistent after a restart on NodeMCU

I'm making a smart home system using nodeMCU, and I need to store and retrieve data from the module. I used the following function. function save_settings(name,value) file.remove(name) file.open(name,"w+") file.writeline(value) …
Suraj Bhawal
  • 403
  • 1
  • 6
  • 19
7
votes
1 answer

How to reset esp8266 NodeMCU?

I'm new at NodeMCU. My NodeMCU version is LOLin 0.1 First code I have uploaded is Spacehuhn's Deauther. I set up my AP for deauther settings and everything worked fine. Few days later I wrote a new code (related with WIFI) and it didn't work. …
Nopparuj
  • 71
  • 1
  • 1
  • 3
7
votes
3 answers

How to flash RobotDyn ESP8266PRO board?

Working with the RobotDyn ESP8266PRO version of the NodeMCU. First, no doc provided by manufacturer. Here is as far as I got: 10Kohm between EN and 5V 10Kohm between IO15 and gnd ground IO0 and reset I used a PL2303 cable (success with Ardruino…
cc young
  • 18,939
  • 31
  • 90
  • 148
7
votes
2 answers

Check the battery status with NodeMCU?

I use an ESP8266 dev board from NodeMCU with Lua. I power my chip with two AA batteries, which gives me 3V. See this: https://www.hackster.io/noelportugal/ifttt-smart-button-e11841 How do I check the battery status using NodeMCU?
Michael
  • 32,527
  • 49
  • 210
  • 370
6
votes
9 answers

How to fix "SerialTimeoutException: Write timeout" error with NodeMCU and arduino ide

I was trying to build a simple IoT product using a nodemcu, an LED, and the blynk app. This is the most basic thing you can do with a nodemcu. However, when I was uploading the example from the Blynk library, I was getting this error. It seems to be…
Saumit Paul
  • 69
  • 1
  • 1
  • 3
6
votes
4 answers

Not able to browse the mdns service created in esp8266

What I done till now is I created mdns service in my nodemcu ... // code used to create the mdns service if (mdns.begin("esp", WiFi.localIP())) Serial.println("MDNS responder started"); server.begin(); …
Sachin
  • 2,627
  • 1
  • 19
  • 35
6
votes
1 answer

Race between socket accept and receive

I am using nodemcu with an esp-32 and recently came across an annoying problem. I refer to this sample from the NodeMCU Github page: -- a simple HTTP server srv = net.createServer(net.TCP) srv:listen(80, function(conn) conn:on("receive",…
Ctx
  • 18,090
  • 24
  • 36
  • 51
6
votes
4 answers

How can I reset ESP8266 MicroPython after main.py crashes?

I have a NodeMCU ESP8266 board running MicroPython. I'm running a web server on my ESP8266. This is my first IoT project based on one of these boards. The below is a snippet of the code. This is being executed within main.py. Every now and then,…
user1600747
  • 63
  • 1
  • 5
6
votes
1 answer

NodeMCU auto-join open wifi

I have searched for solution for this issue for quite a long time with no luck. I would like NodeMCU to look for an open wifi network and connect to it. As long as the connection is available use that connection - and when the connection drops start…
1
2 3
64 65