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

How to get the IP of hostname in a local Wi-Fi network? Android studio (JAVA)

What I am trying to do is make an Android App for my NodeMCU so that I can send data via Websockets and not use the browser. I don't want the end user to be inputting any IP addresses to look for the NodeMCU in the network. I understand that you can…
-1
votes
1 answer

getting a error: 'class WiFiServer' has no member named 'arg'

im getting a error like error: 'class WiFiServer' has no member named 'arg' my code #define ENA 14 // Enable/speed motors Right GPIO14(D5) #define ENB 12 // Enable/speed motors Left GPIO12(D6) …
-1
votes
1 answer

Can't get ws2812b SMD LED to light up with NodeMCU using Blynk and FastLED

Wiring Diagram: Sorry for the lame diagram, I am new to this. I have a 5V input with 2.2A (checked using multimeter), with my data pin wired inline with a 220Ω resistor. I'm able to successfully connect to my WiFi network and Blynk's cloud server,…
Joe Howard
  • 307
  • 5
  • 27
-1
votes
1 answer

Use HTML for arduino in a raspberry with Python3

Good morning, I currently have an html page with graphs, gauge and various read values created and published by an arduino in C ++. I would like to pass everything on a raspberry in python3. Is it possible to keep the html file and integrate it or…
Agarest
  • 29
  • 5
-1
votes
1 answer

Building a weather station using nodemcu and bme280 sensor,i am facing some errors.1)error: 'handle_OnConnect' was not declared in this scope

#include #include #include #include #define SEALEVELPRESSURE_HPA (1013.25) Adafruit_BME280 bme; float temperature, humidity, pressure, altitude; const char* ssid =…
-1
votes
1 answer

esp8266 request esp8266 http server code -1 (Arduino IDE)

two nodemcu device. device1: create webserver and hotspot. device2: connect hotspot, request web server, response -1, body empty. I test device 1 webserver use browser from PC, success. Test device 2, connect same route wifi, request my PC server,…
yucui xiao
  • 19
  • 6
-1
votes
1 answer

How to get argument value from ESP8266wifi library?

I am using ESP8266WiFi library for a NodeMCU project where the user has to fill a form and submit the data through GET. Now I want to read the Arguments such as 192.168.1.1/submit?Name=john All I need is to get the arguments after 192.168.1.1? what…
-1
votes
1 answer

How do i use the deep sleep function from the Node MCU correctly?

i have an Node MCU and want because i have it running with a batterie to go to deep sleep mode until i press the reset button. So it should use ~20 uA but it uses 12.7 mA. Do i something wrong with this function? ESP.deepSleep(0);
user10536157
-1
votes
1 answer

how to send and receive data from nodemcu?

I want to develope android studio application which send data to nodemcu and also I want to receive data to android textview. Or the same functionality using Bluetooth module. Because using Bluetooth module I can control led using android…
-1
votes
1 answer

error HTTP/1.1 400 Bad Request using nodemcu to input data in mysql

im trying to connect mysql and nodemcu with php(laravel), but when im running arduino script it come with error that i don't know. can someone help me? #include #include #include #include…
-1
votes
1 answer

how can i get the content of the url below using HttpURLConnection for my android application

here is url ... https://api.thingspeak.com/update?api_key=R3LQP7IXIXEQ1OIV&field1=0 Actually..I don't want to get the content of url. I just want to update the value of field1 to 1 and 0. If I just type this url in any broswer,my thingspeak data…
-1
votes
1 answer

How to fix multiple " 'Variable' previously declared here" Error in Arduino

I added UDP Support for my Project from another working sketch. My project compiled fine before, now I'm getting these weird 'Variable' previously declared Errors in Arduino. I didn't change anything in the parts where the Errors seem to…
user10908367
-1
votes
1 answer

Is there a way to make https requests in Lua?

Good evening, I have a problem with NodeMCU programmed in Lua. I should get a https get request but I can't. I tried with the net module but it gives me the error of redirection 301. Using http.get instead it gives me an error - 114. How can I solve…
Gio
  • 1
  • 1
-1
votes
1 answer

Transmit/Receive data Nodemcu(V3) + Bluetooth Module HC-05

I am trying to communicate with the HC-05 Bluetooth module for quite long time now, but with no success. I am using the Nodemcu(V3) ESP8266 module. I connect the HC-05 to Nodemcu in following sequence: HC-05 Nodemcu ----- …
Sandrocottus
  • 521
  • 3
  • 8
  • 31
-1
votes
1 answer

rtcmem seems not to survive node restarts, as it should

If you are using rtcmem to store values that you want to keep after a node restart, you may find that after a node restart values stored in slots 1 to 9 goes to 0, instead maintaining the stored value.
eHc
  • 41
  • 4