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
2
votes
2 answers

Unable to load Lua Scripts to NodeMCU: Invalid node.chipid()

For all of these scenarios, I am able to upload the firmware and monitor via serial usb. But after creating my first firmware, for all new firmware, I can't upload Lua scripts using the nodemcu-tool without getting the following: Error…
tunneling
  • 527
  • 6
  • 21
2
votes
0 answers

How Can I change database value according to comming link

I don't know how to tell but I will try :) I am using NodeMCU and CAM module, CAM module read the QR code and user 1 get the link like this: sitename.com/project/userid1 For example another user 2 have sitename.com/project/userid2 link. And CAM…
user10595297
2
votes
2 answers

Unable to read serial/uart pins on NodeMCU

I am unable to read the serial pins in the NodeMCU Lua environment. I have only been able to read the USB serial port. I have connected a serial adapter to the rx, tx, and g pins. I have tried this code: uart.on("data","\n",function(data)…
2
votes
1 answer

Why do I get a soft reset every time trying to connect to WiFi using Arduino IDE and ESP8266WiFi.h?

I am setting up a simple WiFi client for testing. but every time I try to upload and connect my NodeMCU, I get this error/soft reset message in Serial Monitor in Arduino IDE: TEST Soft WDT reset >>>stack>>> ctx: cont sp: 3ffffdf0 end: 3fffffc0…
Salva
  • 21
  • 1
2
votes
0 answers

Is there a possibility to connect a ESP8266 to the Google Firestore without using Google IOT platform

I am working on a project whereby I want to connect my ESP8266 (NodeMCU) to the google Firestore (not the RT-Firebase) to read / retrieve some data and maybe write something to it aswell. I have already tried with a simple REST API GET-request but…
2
votes
0 answers

How to provide iot service to our devices during aws code update roll out?

We are using AWS IOT for our home automation product. Recently we started to face a new issue with AWS IOT services. The problem is when AWS IOT team release new code updates, they disconnect certain devices from mqtt. Our devices connect to mqtt…
abhishek
  • 87
  • 1
  • 10
2
votes
2 answers

NodeMCU (ESP8266) Exception 28 when connecting to MQTT broker

I am using a NodeMCU (ESP8266) as a WiFi client to connect to an MQTT broker run on my computer. Using this setup in Windows using WSL (Ubuntu), the MQTT broker seems to work perfectly fine. The ESP8266, however, throws an error in the Serial…
ds_k7
  • 23
  • 1
  • 3
2
votes
2 answers

NodeMcu Serial Communication Tx and Rx

I am beginner for NodeMcu. I brought a Adraxx ENTDEV019 ESP8266 NodeMcu WiFi Development Board. I am trying to program with arduino Ide. I tried some basic examples. Below is code I am trying for the board. I am using Serial1 port for debug…
Sarfraj
  • 312
  • 1
  • 5
  • 16
2
votes
2 answers

evoking files nodemcu lua 8266

I am trying to understand the use of dofile() in lua. Is is good practice to put into the init.lua file a row of other files with function declarations, wifi initializations and so forth? init.lua: dofile("InitWifi.lua")…
I0sens
  • 61
  • 4
2
votes
0 answers

Out of memory on srv:listen

I searched all the web but didn't find an answer. I want to set up a wifi AP and a webserver on the NodeMCU. I use the following code: wifi.setmode(wifi.STATIONAP) wifi.ap.config({ ssid = "test", pwd = "12345678" }) print("Server IP Address:",…
2
votes
2 answers

ECONNABORTED when POSTing from micropython on NodeMCU using requests

I have a small Python server which I can POST commands to in order to control my LIFX lights. From Postman I can spam this as much as I like and never see an error, but what I'm trying to do is build a couple of wall switches that trigger the lights…
jymbob
  • 478
  • 5
  • 16
2
votes
5 answers

Node MCU(ESP 8266) with firebase

This is the code I upload to the ESP8266 to connect to firebase. #include #include #define FIREBASE_HOST "*******.firebaseio.com" #define FIREBASE_AUTH "68GM**************m4k0IPLXF4G1" #define WIFI_SSID…
2
votes
2 answers

Getting error on uploading code into esp8266 nodemcu by Arduino

Recently I bought a esp8266 nodemcu for my project. For running the blink code, I followed this tutorial esp8266 quick start. But ended up with this : Sketch uses 246,319 bytes (23%) of program storage space.Maximum is 1,044,464 bytes. Global…
2
votes
3 answers

Is it possible to update NodeMCU Lua files OTA?

I would love to be able to update my NodeMCU ESP8266-01 OTA, since they're located in awkward spots. I'm by no means an expert regarding the ESP or NodeMCU, but I haven't been able to find anything recent about OTA updates. I found some discussions…
Timmiej93
  • 1,328
  • 1
  • 16
  • 35
2
votes
1 answer

Nanopb + Azure MQTT not working on NodeMCU

I have been trying to encode a string using Nanopb library on NodeMCU and publish it using AzureMQTT. On testing individually, both Nanopb and Azure work just fine. However, Integration of both in one sketch gives me errors. void loop(){ …