Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
3 answers
150 views

Issue uploading Lua code to nodemcu on ESP32 due to missing file.open()

I'm trying to run nodemcu on an ESP32 (more memory than esp8266). I've build the firmware using the sources from https://github.com/nodemcu/nodemcu-firmware.git, the dev-esp32 branch. The build was ...
Jeroen's user avatar
  • 1
0 votes
0 answers
29 views

ESP32 NodeMCU Lua - How to control DHCP on WiFi Station?

There is ipconfig for static address, but what about dhcp? Problem is, if I already configured static address, how to select dhcp instead? can I, at least, clear IP configuration somehow. at the ...
nopik's user avatar
  • 1
0 votes
2 answers
265 views

How to use multiple identical i2c sensors on NodeMCU V3

I have an ESP8266 (ESP-12) NodeMCU V3 with 2 identical sensors TSL2561. If I want to get two values, am I doing the right thing? status = tsl2561.init(4, 5, tsl2561.ADDRESS_FLOAT, tsl2561....
timsa's user avatar
  • 1
1 vote
1 answer
222 views

CAN on ESP32 with Nodemcu

I have tried various Nodemcu builds based on the idf 4 (including the online builder) and cannot get the CAN bus to work on the built-in CAN controller. When I do make menuconfig, I don't see ...
hofmaker's user avatar
0 votes
0 answers
20 views

NodeMCU GET request returns nothing

i've create a nodejs server on codespaces, just return your request type (GET or POST). but it works through microsoft edge and postman, on NodeMCU it returns nothing it should return this: 200 {"...
PlanC14's user avatar
  • 11
0 votes
1 answer
207 views

CORS issue on ESP32 with nodemcu lua

I want to create Esp32 based server and wanted to implement local REST api's so I took https://github.com/abobija/api32 help and written some api's everything working with chrome/postman but when ...
Abhi's user avatar
  • 73
0 votes
0 answers
57 views

ESP8266 do not send back http resppond

I have some problem. If I have old firmware (NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4) then it works and I receive back response to phone. But if I have new one ( build 2022-09-07 powered by ...
Илья's user avatar
0 votes
2 answers
270 views

ESP32: nodemcu lua, is it support threads

I have search thru nodemcu docs, not find anything about threads support in ESP32 DEV version. Does someone know if it was done, or working on it?
user3503519's user avatar
1 vote
0 answers
88 views

Error loading module 'liquidcrystal' from file 'liquidcrystal.lua': not enough memory

I'm trying to use a LCD display 16x2 (based on Hitachi HD44780) with 4-bit I²C interface (based on PCF8574) on an ESP8266 NodeMCU V.3 (ESP-12E) and when I load the liquidcrystal.lua library (by ...
Marcelo de Oliveira's user avatar
0 votes
0 answers
626 views

How to connect esp32 to cloud mqtt broker without wifi using SIM800 with nodemcu Lua?

I want to implement smart motor controller with esp32(nodemcu firmware https://nodemcu.readthedocs.io/en/dev-esp32 with lua 5.1) my project is mqtt and wifi based so for that I needed a wifi router. ...
Abhi's user avatar
  • 73
0 votes
1 answer
107 views

How can I read stdio on ESP8266 NodeMCU

I am trying to read user input from the Lua console, but do not seem to be able to read from stdio print("Enter your name:") if file.open("stdio") then line = file.read("*a&...
Andy Joiner's user avatar
  • 6,322
0 votes
1 answer
3k views

Lua timer - creating a timer to execute a function every X seconds

Following instructions on https://nodemcu.readthedocs.io/en/release/modules/tmr/#tobjcreate I am trying to create a timer in my Lua script which will execute a function every 10 seconds. Sample timer ...
protospheric's user avatar
1 vote
2 answers
226 views

LUA Script produces error while Compiling

When compiling the following lua script in Arduino 1.8.16 to be loaded to NodeMCU 8266 MOD 12-F I get a failure message (attached after the script). I am new in the whole Arduino (and SW overall..) ...
Igor's user avatar
  • 11
1 vote
0 answers
120 views

nodemcu gpio interrupt not working properly

My nodemcu uses Lua firmware. Recently, when using gpio.trig() to obtain pulse signals, I found that the callback function cannot be triggered completely, and some pulses are always missed. Can ...
mary's user avatar
  • 11
0 votes
1 answer
415 views

ESP8266 NodeMCU Lua How to clear the heap?

How to clear the heap or all memory? I need to restore state in case script fault. On fatal errors script stopping and I want to cleanup mess before reset and script fires again. 8266 works as serial ...
nopik's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
21