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

How to read analog pin data from the Blynk HTTP RESTful API?

I am making my own app for my project with Blynk so I need the Blynk API it works fine with Digital Pins I am getting the right value. But I tried with analog pin I used this syntax: http://blynk-cloud.com/auth_token/get/pin When I give the analog…
Rohit
  • 71
  • 9
1
vote
1 answer

What is "ESP_NOW_ROLE_MAX"?

While trying out esp-now on a nodemcu v1.0 (esp-12e) I stumbled across ESP_NOW_ROLE_MAX while setting the role with esp_now_set_self_role(...) and wondered what this could be? Any idea? (I was using Platform.io, but this should also be the same in…
1
vote
1 answer

ESP8266 Micropython: [Errno 103] ECONNABORTED\r\n') after some time

I am having issues running the following script for a longer period of time: I use ampy to execute the script on the ESP: sudo ampy --port /dev/ttyUSB0 run photoresistor.py photoresistor.py: #!/usr/bin/env python3 import machine import…
gary
  • 13
  • 4
1
vote
1 answer

Data are not sent between Arduino uno and NodeMcu esp8266 at all time

I am sending data from Arduino UNO R3 to nodeMcu esp8266. In that case sometime data are send properly but at sometime data are are not send by arduino or not get by nodemcu esp8266.Also tx light not blinks after i upload the code to the…
1
vote
1 answer

Sending Float Data Type from Arduino to ESP32 (NodeMCU)

I am trying to have a NodeMCU(ESP32) receive a floating data type from an Arduino Uno but I do not have any idea how. Can someone please guide me through the process? For now, I have the basic serial communication code sending a single digit Int…
1
vote
0 answers

esp8266/Nodemcu Service Worker - An unknown error occurred when fetching the script

I'm working on a 3d printed wifi car running on a Nodemcu (not too sure of the exact board as i got it for dirt cheap on eBay). I'm getting the following error: An unknown error occurred when fetching the script. Service worker registration…
stayzeef
  • 11
  • 3
1
vote
0 answers

Which library to import in micropython to transmit IR code on esp8266?

I am trying to migrate my code that is written in C++ syntax to python syntax. Now my issue is, I am not able to find the right library to import in REPL. I am trying to transmit RC6 data of length 24. In original code, I have include #include…
Shariq Azim
  • 136
  • 16
1
vote
0 answers

Serial communication failed between Arduino Nano and NodeMCU using ArduinoJson

I'm new to embedded systems. I'm trying to send data/values to a NodeMCU and I found I could using the ArduinoJSON lib. I'm trying the same thing that the tutorial gives, but I don't know why it doesn't work for me. Can someone tell me why? And how…
1
vote
1 answer

Can't find why Firebase.getFloat returning wrong value

#include #include #define FIREBASE_HOST "myproject07.firebaseio.com" #define FIREBASE_AUTH "Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxvfig" #define WIFI_SSID "xyz" #define WIFI_PASSWORD "12xxxxxx" float mv; String…
1
vote
1 answer

NodeMCU httpserver module does not free anything

I have sucessfully setup NodeMCU version 3.0.0.0 on a ESP-01s and connected to my wifi. Now I tried to setup an httpserver using the nodemcu httpserver module Added a simple request handler with printing the heap size ... httpserver =…
Pascal
  • 2,059
  • 3
  • 31
  • 52
1
vote
0 answers

Need a code structure advice for nodemcu http calls

What i want to achive? Make http call to get an auth token read some sensor data use auth token to send sensor data via http put node into deep sleep Some limitation of the nodemcu firmware (master) are: You can not make synchronous http…
nfo
  • 637
  • 2
  • 6
  • 19
1
vote
1 answer

Thingsboard NodeMCU

I have connected the NodeMCU with the temperature sensor and sending the temperature data to the thingsboard, when sending locally ( thingsboard server running on localhost and NodeMCU connected to the same network )its being sent correctly but when…
1
vote
1 answer

Receive socket when in loop arduino (Interupt a while loop with a socket)

I'm currently working on an arduino project. Were the arduino is communicating with a NodeJS server via web sockets. The socket connection is working fine and has no problems. But the problem I currently have is that I want to be able interupt an…
Robin Fors
  • 83
  • 7
1
vote
0 answers

When I upload basic code to NodeMCU showing an compiling error

I'm using Windows 10. I want to upload some basic code to my NodeMCU module. Code: void setup() { // put your setup code here, to run once: pinMode(D0, OUTPUT); pinMode(D1, OUTPUT); pinMode(D2, OUTPUT); pinMode(D3, OUTPUT); } void loop()…
nipoo
  • 170
  • 1
  • 9
1
vote
0 answers

Storing NodeMCU data into MySQL database

I am working on a project that requires me to store DHT11 humidity and temperature data into a local MySQL database. I have installed the XAMPP server on my computer and started MySQL server. I have written a .php script in htdocs folder that can…
Umar Dastgir
  • 688
  • 9
  • 25