Questions tagged [esp8266]

An IC that offers Wi-Fi networking compatible with b/g/n standards. It also has integrated TCP/IP protocol stack. Extremely popular along IoT community as a low cost and powerful board.

470 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
1k views

Flash String Helper object as variable

So I have a Bunch of commonly used char arrays to build commands in my library. So to preserve memory, I have them put into flash, via PROGMEM ext, typedef const char PROGMEM ProgChar; ProgChar AT[] =...
3
votes
0answers
2k views

Non-blocking MQTT library

Are there any MQTT libraries that do not block while connecting? I'm currently using PubSubClient, and the connection part contains this code: https://github.com/knolleary/pubsubclient/blob/master/...
2
votes
1answer
35 views

ESP-01 Programming

I have had so many problems with this board. I have a detailed list of everything I've tried at the link below, but for simplicity I will just summarize where I am now: https://forum.arduino.cc/...
2
votes
0answers
535 views

ESP8266 Websockets problem

I am trying to set up a network of 4 esp8266 programmed via the Arduino IDE. The Network will have 1 server (esp8266 running in AP mode) and 3 clients (esp8266 running in STA mode). I would like to do ...
2
votes
0answers
213 views

Cannot POST to server. HTTP code -1. NodeMCU

I am trying to make a POST request with NodeMCU, but I get a HTTP status code -1. Code: #include <ESP8266HTTPClient.h> #include <ESP8266WiFi.h> #ifndef STASSID #define STASSID "Wifi" #...
2
votes
0answers
218 views

Fail using OTA - Network ports

I was using OTA to upload sketches to ESP ports I have ( around 10 ESPs). For some time now - I'm having some kind of a trouble I would like to share, since I've read some similar topics, but all didn'...
2
votes
0answers
2k views

How to listen to multiple server ports with ESP8266?

I'm using WeMos D1 R2. I'm trying to listen to both ports 1992 and 1993. This is my current code: #include WiFiServer server_1992(1992); WiFiServer server_1993(1993); void setup() { Serial....
2
votes
0answers
876 views

Wake up ESP8266 with multiple GPIOs

I am building a ESP-07 based IOT device, that detects the status of 4 doors. The device must connect to WiFi and send an http request, when 1 of 4 doors is opened. I want to place a reed switch, for ...
2
votes
0answers
2k views

ESP-01 not running custom firmware

I have two esp-01 micro controllers that I'm trying to flash using the Arduino IDE but found some problems in the process. I followed step 1 of this tutorial to install all the dependencies to the IDE....
2
votes
0answers
274 views

How can i change by esp8266 baudrate, as I accidentally changed the baudrate to something else(which I dont remember)?

//In order to connect, SoftwareSerial esp8266(2,3); // the TX pin of esp8266 is connected to pin 3 of // arduino uno and RX pin is connected to 2 // we need to pass baud rate to begin ...
2
votes
0answers
5k views

How do I interpret the esp8266 “boot mode” message?

Everytime the chips resets, we get the reason and the next boot mode. ets Jan 8 2013,rst cause:XXX, boot mode:(YYY,ZZZ) For XXX we can check the meaning here. For YYY and ZZZ I am not sure but I ...
2
votes
0answers
2k views

Converting between NEC and HEX values from IR receiver

I jacked one of the IR receivers from my LED strip and hooked it up to my ESP8266 NodeMCU (running Arduino code). I found a great library called IRremoteESP8266. With this library, I can basically ...
2
votes
0answers
2k views

Sending data from Arduino UNO as a SOAP request

I have a servo motor on one end which can be turned ON and OFF with web service sending SOAP request. In the other end I have my Arduino UNO with ESP8266. Currently, I am able to send HIGH or LOW ...
1
vote
1answer
32 views

CIPSEND to ESP8266 returning bytes but no content

I am trying to send a GET request from an Arduino Uno connected to an ESP8266 through SoftwareSerial. I can't get it working directly in the code so I've stripped it down to a script that passes ...
1
vote
0answers
79 views

ESP8266 NodeMCU CP2102 ESP-12E I2C with MPU 6050 Error

So the previous two questions could be found here: ESP8266 computtion error and ESP8266 not working with MPU 6050 over wire library and I2C However, it was not resolved, and with updates and debugs,...
1
vote
0answers
30 views

ESP8266 unresolved mDNS host in .local domain

I am trying to implement a mDNS for esp8266 in Arduino IDE following this guide. https://tttapa.github.io/ESP8266/Chap08%20-%20mDNS.html I cannot get the esp8266.local name to work - when i ping it ...
1
vote
0answers
127 views

ESP8266 Connection with WPA2-PEAP Enterprise Network

I am trying to connect my nodemcu 12E module to WPA2-entrprise network but not able to connect. I had gone through the Espressif Forum and GitHub but still not able to resolve my problem. here is ...
1
vote
0answers
107 views

How to parse data most efficiently coming through mqtt with ESP8266

I am writing a program that is currently set up like so: Python script running on my computer. Raspberry pi is the broker for the mqtt data transmission An ESP8266 is programmed to listen to/...
1
vote
0answers
74 views

esp8266 using thingspeak for iot light on project via google assistant fatal error everytime

fatal error timeout and unable to connect to thingspeak for fetching data sent via google assistant (ifttt) #include <LiquidCrystal.h> #include <SoftwareSerial.h> //ESP is connected to ...
1
vote
0answers
290 views

reference to 'File' is ambiguous. Why am I getting this error?

The program is supposed to take photo and store the picture into the SD card with the timestamp. My Program Code: #include <SdFat.h> #include <Adafruit_VC0706.h> #include <SPI.h> #...
1
vote
0answers
233 views

Parsing the data from an HTTP POST request on a ESP8266 / wemos

I'm sending an HTTP Post request on my Android App to my Wemos D1 mini pro and want to parse the incoming data (which is a json). My current code just prints out the whole POST request and I need to ...
1
vote
0answers
91 views

ESP8266 and Arduino, using i2s and the built in adc?

I've done some extensive googling but haven't found any kind of proper documentation. Is it possible to use i2s with the built-in ADC on an esp8266 to sample audio? And if so: any sample code on how ...
1
vote
0answers
44 views

Turning on controller with button and turning off with a timeout

I am making a device controlled by an ESP 8266 and am wanting to save power by having it power down when not in use. The desired behavior is for a momentary button press or vibration sensor activation ...
1
vote
0answers
611 views

ESP8266 Huzzah error: “Failed to connect to ESP8266: Timed out waiting for packet header”

I am trying to follow this tutorial but when I get to the step... "Once the ESP board is in bootload mode, upload the sketch via the IDE" ..I get the following error in Arduino IDE: File "[path]/...
1
vote
0answers
540 views

error compiling for board node MCU 1.0

Arduino: 1.8.9 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)" In file included from C:\Users\Priyaranjan Tiwari\Documents\Arduino\007mcu_php\007mcu_php....
1
vote
0answers
31 views

If an Arduino goes to sleep, does the attached ESP also sleep?

I am using Arduino Uno + an attached ESP-01 (ESP8266). I want to save battery, so I made my Arduino get sleep & interrupt by a watchdog timer. But if the Arduino goes to sleep, does the attached ...
1
vote
0answers
45 views

EEPROM Esp8266 Memory Issue

I had assembled a board with esp8266ex bare chip with 4MB eeprom for esp and also can be shared with host MCU. I had gone through some googling and found that using eeprom function I am able to write ...
1
vote
0answers
58 views

My PIR sensor output changes but digitalread high all the time

This is my final project, I have to communicate with two wemos d1 mini by LAN. The problem is that when I read the state of the PIR sensor it is "HIGH" all the time, but when I connect the led light, ...
1
vote
0answers
119 views

MKR1010 serial communication

Is communication using tx/rx from an arduino to mkr1010 the same as any other serial communication? I ask because I can't find any tutorials or info on connecting an arduino to mkr1010, but there are ...
1
vote
0answers
2k views

Send file from ESP to server via FTP

I've a code which records sound to SD, then starts an FTP connection for a limited time. I want to make an automatic system which records then sends the sound file continuously. Now I'm recording ...
1
vote
0answers
111 views

Can't POST data with Arduino and ESP8266

I'm having problems with my Arduino UNO and the ESP8266 module. I need to send values from Arduino to my PHP web page in this way: http://www.server.com/km/db.php?id=53 the ESP8266 module is working ...
1
vote
0answers
253 views

Cant get rid of Soft WDT reset using ESP8266

Im using ESP12E DevKit v2 (esp8266 wifi module) board for controlling relays and displaying DHT22 temp,humidity on web server. It runs smoothly but after while i always get a watchdog timer reset. (If ...
1
vote
0answers
229 views

OTA mDNS issues with ESP8266 and PlatformIO?

The common useage of the OTA library for this MCU is to have it connect to a network, and to then use a computer on that network to upload firmware across that network. Due to either issues with ...
1
vote
0answers
305 views

OTA port not showing up

I am using the BasicOTA file and after uploading and rebooting the board everything works and I get a message in the serial monitor saying "Ready" and my board's IP address. However, the board doesn't ...
1
vote
1answer
313 views

esp8266 + octocoupler relay: WDT reset when using AC current

I'm trying to switch on bulb via 4 channel 5V optocoupler relay controller from ESP8266 using WIFI Access point. All my connections looking fine and i can able to connect WIFI SoftAP and send signal ...
1
vote
0answers
242 views

HTTP GET fails from ESP8266 to Emoncms

I've tried the code with emoncms.org as well and the results are identical; one parameter posts fine, but when I include the second parameter in the JSON I get HTTP 400 Bad Request from nginx and I'm ...
1
vote
0answers
589 views

Arduino/ESP8266 - TCP server, connect to AP, receive connections/data

We're trying to use an ESP8266/Arduino Uno as a TCP server, which connects to a wireless AP and then receives commands from other devices on the same network. Currently we got the "connect to AP" part ...
1
vote
0answers
514 views

Exporting an html for esp8266

EDIT: Added "web page source" ("In the end", :D ) (Please, sorry if this question isn't in the right place, feel free to move it to that place) Here I have a problem: In my house I have a self-...
1
vote
0answers
279 views

What is the best way to communicate with ESP8266-01 in LAN?

I've been working on this small project, not that small for me though, for a while. Because I also had classes and exams I didn't really have time for it. But almost everything was done except that I ...
1
vote
0answers
316 views

ESP8266 based wifi IR Universal Remote for A/Cs

I have been working on a prototype for a wifi based universal remote controller and i have been using the IR-Remote library for the same. But i have a couple of questions which google couldn't help ...
1
vote
0answers
90 views

ESP8266 WiFi Module disconnects from WiFi itself

#define id "qwerty" #define password"123456789" int relayPin= 4; void setup() { Serial.begin(115200); Serial.println("AT"); pinMode(13, OUTPUT); pinMode(relayPin, OUTPUT); delay(3000); ...
1
vote
0answers
1k views

ESP8266 can't read parasitic DS18B20 temperature (reset during conversion, 85°C)

tl;dr at the end I was running two DS18B20+PAR temperature sensors without any problems for the last two years on an ESP-01 module running on 3.3V on GPIO 2 using a 4.7K pullup resistor. Now, ...
1
vote
0answers
30 views

Serve currently uploaded code from Arduino

I'm creating a project where multiple ESP8266 12-E's are connected together. I want to use ArduinoOTA with the HTTP option (described here) and I want to have one ESP be able to send its code to ...
1
vote
0answers
1k views

Reading +IPD response from serial.read() using Arduino UNO and ESP8266

I have a python server running on my PC and I am using an Arduino Uno (wifi enabled by a ESP8266 chip) as the client. I can make the the server and client communicate using AT commands as shown below: ...
1
vote
0answers
205 views

ESP8266 exception if sending TLS-POST-request for a couple of iterations

Problem I send sensor measurements from an Arduino to -> AWS APIGateway -> Lambda -> CloudWatch, which works but only for a couple of minutes, then a stack-trace is shown and the program stops. ...
1
vote
0answers
287 views

Adafruit Huzzah Feather not resetting and serial monitor garbage

Hi there, I have an Adafruit Huzzah Feather project laid out as you can see in the diagram above. Currently I am having trouble getting it to reliably reset and start the sketch. More often than ...
1
vote
1answer
2k views

ESP8266 - Webserver not working in loop

I have simple example, where in loop is called webServer to handle clients and also text drawing on display. The thing is that webServer is not responding, but when I remove second part of loop - ...
1
vote
0answers
1k views

espcomm_sync failed when connecting ESP8266 (ESP-01)

I'm new to the Arduino (I'm a developer but didn't have a chance to work with this kind of device before) and wanted to connect my ESP8266 to the Arduino Uno. I followed this tutorial but I got errors:...
1
vote
0answers
683 views

ESP8266WiFi client.print() strange response

I am using a NodeMCU, so ESP8266. I installed the core via the Boards Manager at the last version. My goal is to control a GoPro camera through WiFi. I am getting mad with these few lines of code: ...
1
vote
0answers
298 views

ESP8266 vs. iPhone Hotspot

My Problem: ESP8266 wakes up --> takes measurement --> looks for known SSIDs --> uploads data --> goes back to deep sleep This whole process works with android hotspots and other "normal" wifi ...

1
2 3 4 5
10