All Questions
226
questions
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....
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 ...
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 ...
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&...
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 ...
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 ...
1
vote
1
answer
410
views
Is there a way to increase SD Card Write speed in LUA on Nodemcu ESP8266?
The maximum write speed I can achieve is 2.4 KB/s. Is there a way to increase this?
Using LUA on a NodeMCU ESP8266 and the SPI module in User_Modules.h. #define BUILD_FATFS is also enabled in ...
0
votes
1
answer
393
views
Lua function returns string, but calling function gets nil
I'm writing a function for Nodemcu (esp8266) Lua to build command strings from UART (someone typing). When it finishes capturing characters, it's supposed to return the string to the calling function, ...
0
votes
1
answer
140
views
Detecting malformed JSON in NodeMCU Lua using sjson.decode()
Using NodeMCU (latest release) on ESP-12S
I am trying to parse user supplied JSON and do something with it.
However, because the JSON is user supplied, I cannot guarantee its validity. So I want to ...
1
vote
2
answers
224
views
ESP8266 running NodeMCU - Detect Pulse Stream Start/Stop
I've built an automatic, self-filling water bowl for my dogs that's working perfectly with a water level controller and I'd like to now add some monitoring capabilities using an ESP8266. Like ...
0
votes
1
answer
556
views
HTTP client: Disconnected with error: -114 Lua
I'm trying to comunicate with thingspeak using my nodemcu. I'm using lua and i'm trying to push data using a get request but i get(literally...) this error:
> HTTP client: Disconnected with error: -...
1
vote
1
answer
447
views
How to list all 'romtable' modules built-in into currently running NodeMCU firmware?
This question is as in the title, and pretty much that's it.
The firmware certainly knows what it carries inside. Here's the NodeMCU's "welcome" info:
NodeMCU ESP32 built on nodemcu-build....
0
votes
0
answers
309
views
How to get RAM details of ESP32 using NodeMCU Lua
What is the best way to debug ESP32 with NodeMCU firmware memory related issues, I need to know flash info, RAM size and memory related info. I tried
node.heap()
node.info()
but those are not working ...
0
votes
1
answer
735
views
NodeMCU Lua integer max value is 2^31
Lua 5.1.4 on SDK 3.0.1-dev(fce080e)
Trying to use node.dsleepMax() and it is returning a really smaller number (147324921). Then I tried to manually set the sleep time in node.dsleep to the 32-bit max ...
1
vote
1
answer
297
views
Is there a way to use ESP NOW protocol using lua?
i'm working on a project using esp8266 nodemcu board, and found right at the beginning that there is an IDE for this board called ESPlorer IDE which uses Lua code, so i've using https://nodemcu....