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
-1
votes
1 answer

NodeMCU ESP8266 WiFi low RF power level

I tested the NodeMCU firmware on 4 ESP8266 modules and I have a problem with the WiFi range of the modules (only 8 meters). I tried to switch to the Arduino ESP8266 core firmware and voilà, the modules have a better range (>12 meters). I think that…
Dsk
  • 27
  • 1
  • 3
-1
votes
1 answer

Attempt to index global 'websocket'

I'm pretty new to the ESP8266. I'm trying to add the WebSockets to the Lua code, but everytime I try to use the WebSocket looking at the documentation, the device throws error as attempt to index global websocket (a nil value). I'm not really sure…
maheshgupta024
  • 7,657
  • 3
  • 20
  • 18
-1
votes
1 answer

NodeMCU super tiny web server with autoupdate runs out of memory

I'm testing a little Lua web server that has an autoupdating-feature. The HTML code is redirecting to the web server itself every second. So the client's web browser always gets new data from the server instead of using the browser's cache. If I…
StefanL38
  • 9
  • 4
-1
votes
3 answers

Mount NodeMCU with Micropython filesystem?

I've recently bought a NodeMCU board and flashed Micropython in it. I've read about the boot.py and main.py scripts, but I can't understand how to access them. I have succesfully connected to the Python REPL with the screen command and everything…
magicleon94
  • 4,887
  • 2
  • 24
  • 53
-1
votes
1 answer

NodeMCU gets strange IP address

Today I got my NodeMCU and I instantly started with coding. I wanted to connect to my WiFi and to my MQTT server. I used the PubSub example for this. In the serial monitor I get the message that I connected successfully with the WiFi, but I get the…
Mathis Hüttl
  • 127
  • 3
  • 18
-1
votes
1 answer

Development about done time for production

I have successfully set up my system using nodemcu .9 programmed using arduino ide. My setup is the wifi chip serially connected to synapses rf200p81. So I will need to power both chips and be able to program the esp8266. I am going to need a…
Mark
  • 503
  • 6
  • 20
-1
votes
1 answer

Unable to save code Espruino NodeMCU

I had been working with Espruino for a bit and it is really a wonderful project. But, I am facing an issue for saving the code onto the flash, so that it can still be run when power is supplied to the board(NodeMCU), instead of the PC COM port. The…
Trishant Pahwa
  • 2,559
  • 2
  • 14
  • 31
-1
votes
2 answers

Distance of connected wlan device

how to get the distance of the WLAN device connected to wi-fi of my node esp8266 device using micropython in the node esp8266?
Jagdish Chauhan
  • 129
  • 1
  • 10
-1
votes
1 answer

How to stream data from MPU6050+NodeMCU to Raspberry Pi?

I'm working on a small project, trying to wirelessly stream Accelerometer and Gyro data from 5 MPU6050 to my Raspberry pi at 100Hz via wifi. I've managed to configure the NodeMCUs to sample the data from my accelerometers, but now I'm a little…
Gleko
  • 127
  • 10
-1
votes
1 answer

Code pulsemeter with NodeMCU esp-12

I try to follow this Heart rate using nodemcu, (change Cayenne for Firebase), but I have problems with the Interrupt.ino (I try to change pulsemeter sample code, and have the same problem); is not compatible with Board: "NodeMCU 1.0…
-1
votes
2 answers

NodeMCU - error 'http' not declared in this scope

I am using Arduino 1.6.13 (Windows) to write and send sketches to NodeMCU. I have a custom NodeMCU built against the master branch. It includes file, gpio, http, mdns, mqtt, net, node, tmr, uart, websocket, wifi - using nodemcu-build.com. It was…
Rafie
  • 9
  • 1
  • 3
-1
votes
1 answer

TCP connection crashes after reading only a few strings

I'm working with the ESP8266 wifi module programming it in LUA using NodeMCU. I was able to connect from an iPhone app to the TCP server created by the wifi module to send 3 floats. I parse the huge string into 3 strings and send them using uart to…
user3249979
  • 21
  • 1
  • 5
-1
votes
1 answer

One Esp8266 Client One Esp8266 Server

I did Server-Client Application with lua using one Esp8266. I wanna do this with two Esp8266. I wanna use one of these Esp8266 is Server and the other other one is Client. You can see below first code using for get RSSI from one AP and second code…
ahmd14
  • 61
  • 2
  • 8
-1
votes
1 answer

NodeMCU ESP8266 can't decode JSON and can't convert string to number from Android

Examples Example A: It shows that the JSON is sent from Android and is received for NodeMCU Example B and C: It shows that the JSON can't be decoded Example D: Here It's sent a string and the example shows that the string is received Example E: This…
Cesar SC
  • 19
  • 7
-1
votes
1 answer

ESP8266-01 NodeMCU read JSON in Lua

How do I receive and display the JSON data sent from a local server? I mean the script in the Lua fired at ESP8266 version 01. Ultimately, I want to display the data on an attached LCD 2x16 to ESP8266 by I2C. I want to connect the ESP - 01 to a…
Rafik73
  • 51
  • 1
  • 2
  • 13