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

An error [ Error compiling for board NodeMCU 1.0 (ESP-12E Module) ] is occuring when I try to transfer the data values from NodeMCU to firebase

I have transferred the values from Arduino mega to nodeMCU through serial communication. But I'm not able to transfer the values to firebase. An error is occuring - Error compiling for board NodeMCU 1.0 (ESP-12E Module) This is the code…
-1
votes
1 answer

ESP8266/NodeMCU POST request returns -1 status code

The following code gets a server response of -1. What am I doing wrong? I've done a bunch of research and this is the suggested code. I've tested the server code with Postman, and it works fine, so it must be the other code. Library used is…
Ivan
  • 1,967
  • 4
  • 34
  • 60
-1
votes
1 answer

How to receive data from websocket using a webSocket Client arduino code?

I have an application and a Node MCU which is coded using Arduino IDE. The connection is established using WebSocket and wifi. The application sends data that is to be received by NodeMCU. I have tried to implement the function OnEvent() and it…
Pooja M A
  • 13
  • 2
-1
votes
1 answer

array of strings in arduino C

I'm building a small project using NodeMCU (ESP8266). I want to scan all available WiFi networks collect them in array. Here is my function: String getWifiArray(void){ WiFi.mode(WIFI_STA); WiFi.disconnect(); delay(500); byte n =…
neptunereach
  • 105
  • 2
  • 7
-1
votes
1 answer

nodemcu parse JSOn array

Any idea how I can parse below kind of json array of objects in NodeMCU. "[{\"PropertyID\": \"9641\",\"DBPollCount\": 0,\"SampleTime\": \"1969-12-31T19:00:00\"},{\"PropertyID\": \"9641\",\"DBPollCount\": 0,\"SampleTime\":…
bp581
  • 859
  • 1
  • 16
  • 47
-1
votes
1 answer

Raspberry open Webpage in Background

I have currently installed my NODEMCU with an HTML page on it. Now I want to access it over a public IP via. SSH. I want my Raspberry to call the webbage (10.10.10.99/licht-an). Now my problem is that I don't want to open a webbrowser all the time.…
JFK
  • 7
  • 3
-1
votes
1 answer

BMP180 ERROR read

I have a project with an ESP8266 and a BMP 180 Following this code The first read is everything okay ..but after just 214° celsius Temperature 22.70 Celsius Pressure 102686 Pascal Temperature 214.50 Celsius Pressure 235302 Pascal Temperature …
Leogreen
  • 701
  • 1
  • 6
  • 20
-1
votes
1 answer

Is it possible to connect a NodeMCU to a 3G network, and if so, how?

I have a NodeMCU microcontroller. Question 1: Is it possible to connect this to a 3G network? Question 2: How? Please could someone provide me the example code for connecting to it? Thanks in advance!
Ryan Brown
  • 47
  • 1
  • 8
-1
votes
2 answers

How to Get Response String from HTTP Server using HTTPSRedirect.h (NodeMCU)

The following code is responible for getting a string from HTTP Server while (client.connected()) { if (client.available()) { String line = client.printRedir(url3, host); Serial.println(line); } …
-1
votes
1 answer

Serial.println in arduino ide is not printing properly

I am using nodemcu board ESP8266 1.0 and arduino ide along with it. There is a simple blink light program along with Serial.println code to check both the board and the serial monitor. The board is working fine, but the serial monitor is not giving…
Wan Street
  • 145
  • 1
  • 1
  • 10
-1
votes
1 answer

Can not get NodeMCU webserver to work

So I have brought a NodeMCU and I am just trying to get a basic project to work over wifi. Well this project here: https://randomnerdtutorials.com/esp8266-web-server-with-arduino-ide Now I have it all setup and ready to go I uploaded the code to…
skyline
  • 51
  • 9
-1
votes
1 answer

Read sensor data from ThingSpeak with MIT App Inventor

I've been trying to build an android IOT app using MIT App Inventor. It's supposed to read the voltage value from my NodeMCU device and display it. I think the values should be transmitted to ThingSpeak database channels and I did that just fine.…
B.Djo
  • 1
  • 1
  • 3
-1
votes
1 answer

Getting date time from time.nist.gov does not match current Time

I have try to get date time from server to print on the Arduino console. Unfortunately,Month is not match from the current date time. It shows the last month (January) instead of February. By the way, date of month and year are correct. Here is a…
Mr.Kim
  • 186
  • 1
  • 10
-1
votes
1 answer

Get only part of a JSON when using an API on NodeMCU

I am using http.get() to get a JSON from an API I am using, but it's not getting the data. I have the suspicion that this JSON is too big for the NodeMCU. I only need the information in the subpart "stats:". Is it possible to only http.get() that…
Tanonic
  • 133
  • 5
-1
votes
1 answer

Why does the Arduino IDE work with NodeMCU?

I know when we buy a NodeMCU, we get the NodeMCU firmware already installed in it. But how come we are able to use the Arduino IDE (used for C++ programming) with this dev kit? How can we use a C++ IDE to work with a Lua-based firmware? What's wrong…
abhi
  • 3,110
  • 1
  • 15
  • 17