Questions tagged [esp8266]

ESP8266 is a highly integrated chip which offers a complete and self-contained Wi-Fi networking solution, allowing it to either host applications or offload all Wi-Fi networking functions from another application processor.

The ESP8266 has on-board processing and storage capabilities that allow it to be used with sensors and other application specific devices through its GPIOs with minimal development up-front and minimal loading during runtime. Its high degree of on-chip integration allows for minimal external circuitry. The entire solution, including the module, is designed to occupy minimal PCB area.

The processor itself is an chip; use that tag for questions about Xtensa assembly language, ISA details, and other low-level CPU things, not about peripherals or SDK problems.

The chip features:

  • SDIO 2.0, SPI, UART
  • 32-pin QFN package
  • Integrated RF switch, balun, 24dBm PA, DCXO, and PMU
  • Integrated RISC processor, on-chip memory and external memory interfaces
  • Integrated MAC/baseband processors
  • Quality of Service management
  • I2S interface for high fidelity audio applications
  • On-chip low-dropout linear regulators for all internal supplies
  • Proprietary spurious-free clock generation architecture
  • Integrated WEP, TKIP, AES, and WAPI engines
  • 802.11 b/g/n
  • WiFi Direct (P2P), soft-AP
  • Integrated TCP/IP protocol stack
  • Integrated TR switch, balun, LNA, power amplifier and matching network
  • Integrated PLLs, regulators, DCXO and power management units
  • +19.5dBm output power in 802.11b mode
  • Power down leakage current of <10uA
  • Integrated low power 32-bit CPU could be used as application processor
  • SDIO 1.1/2.0, SPI, UART
  • STBC, 1×1 MIMO, 2×1 MIMO
  • A-MPDU & A-MSDU aggregation & 0.4ms guard interval
  • Wake up and transmit packets in < 2ms
  • Standby power consumption of < 1.0mW (DTIM3)

There are some companies developing modules mostly named like ESP-01, ESP-02, ... ESP-12. Every module has different capabilities and PCB layout.

The modules based on this chip can be programmed with some development tools including Eclipse, CodeBlocks, Arduino(1.6.5) etc. Modules can host different firmwares including NodeMCU. With NodeMCU firmware the chip can parse and execute Lua scripts.

2486 questions
3
votes
1 answer

Arduino ESP8266 does not receive all data from HTTP server

I am using arduino and esp8266 to interact with my HTTP server(Nginx+flask). I have already successful sent the request to server, however, while I checked the message esp8266 received, the esp8266 did not get all data from server. The supposed…
Pringles
  • 421
  • 6
  • 9
3
votes
1 answer

How to listen to other WiFi network SSIDs broadcasted via devices around using NodeMCU?

Devices broadcast SSIDs of networks they connected to previosly. I wonder how to listen to such broadcasts using NodeMCU Lua API ("set the network card in monitor mode")?
DuckQueen
  • 772
  • 10
  • 62
  • 134
3
votes
1 answer

Arduino + ESP8266, How can i send Continous Get Request?

I have a code that was available on this website https://hackaday.io/project/3072/instructions . I made the code work by modifying it a little but the main problem is that it serves the GET request only once. What i want is continuous page fetch and…
Vivek Singh
  • 61
  • 1
  • 8
3
votes
1 answer

How to manage large strings

In a recent test of my ESP8266, I bumped into a memory limitation. I have a simple http server that serves a json of the AP available around ESP8266. function incoming_connection(conn, payload) conn:send('HTTP/1.1 200 OK\n') …
bixente57
  • 1,328
  • 4
  • 14
  • 29
3
votes
6 answers

How to recover nodemcu infinite loop

I made a mistake loading init.lua with a infinite loop on my nodemcu/ESP8266 board. Then the board keep rebooting without any other instruction executed. i = 10 timerId = 0 timerDelay = 30000 -- Milisec pin = 5 gpio.mode(pin,gpio.INPUT) repeat( …
jezuz
  • 413
  • 2
  • 5
  • 13
3
votes
1 answer

How to link static library into specific section?

I am writing code for embedded platform. I need to link with 3rd party SDK. However, the symbols from that SDK should go into specific section (not .text). Is it possible to do that? I use GNU-based toolchain for xtensa-lx106 processor and build for…
RostakaGmfun
  • 487
  • 6
  • 21
3
votes
7 answers

ESP8266 and Arduino Interfacing

I have connected Arduino with ESP8266 with Arduino pin 2 connected to ESP's Tx Arduino pin 3 connected to ESP's Rx via Voltage Divider Arduino GND connected to ESP's GND Arduino 3v3 connected to ESP's CH_PD I have powered ESP8266 using 1117 Voltage…
AngryBird
  • 344
  • 1
  • 4
  • 15
3
votes
1 answer

Using Wifi module ESP8266 to send UDP broadcast message

I need to communicate Arduino module with my Phone through ESP8266 wifi module They all link to the local LAN network and didn't know the IP address of each other, so I plan to send UDP broadcast message from my phone, but ESP8266 module seems…
user2170949
  • 31
  • 1
  • 2
3
votes
4 answers

Arduino module esp8266 returns bad request

I am testing the wifi module esp8266 with my arduino uno. I made it work with direct connection RX/TX and through softwareserial. This is my code: #include SoftwareSerial esp8266(3, 2); // RX | TX #define DEBUG true int…
blfuentes
  • 2,731
  • 5
  • 44
  • 72
3
votes
2 answers

How to make AT commands work programatically in arduino for ESP8266 wifi module

I am doing a simple tcp communication from an arduino to raspberry-pi wirelessly with an ESP8266 wifi module on arduino uno.The tcp server is running on the raspberry-pi.I am able to do TCP communication with the following AT commands in arduino…
lost Coder
  • 577
  • 2
  • 8
  • 34
2
votes
2 answers

Why does my C++ Arduino Program interrupt when I write to an array?

I am trying to create a class that will handle events. class2 represents events, class1 is a structure where events are stored and handled. Here is my simplified code to prove the concept, it doesn't work: class TestClass2{ public: …
boiledRice
  • 31
  • 4
2
votes
6 answers

PermissionError(13, 'A device attached to the system is not functioning.', None, 31)Serial port COM4

I'm very new to using ESP8266,I tried to upload this simple script void setup() { pinMode(D4, OUTPUT); } void loop() { digitalWrite(D4, HIGH); delay(1000); digitalWrite(D4, LOW); delay(1000); } to the node mcu(ESP8266) but I keep on…
Durai Murugan
  • 39
  • 1
  • 5
2
votes
1 answer

Setting different ID when toggle switch is off

I'm working on an Arduino-based system where LEDs will be turned on/off using web server (with ESP8266). I want to add a toggle switch in the HTML page so that LED will be on/off using this slide button. What I have done so far is the toggle switch…
Control
  • 23
  • 3
2
votes
0 answers

ESP8266 cannot connect to MQTT broker

My ESP8266 cannot connect to AWS IoT MQTT broker via PubSubClient. My broker is definitely working, because my ESP32 can connect to it (I use MQTTClient for ESP32, which is not available on ESP8266). Also, I've tried using same credentials,…
Captain Jacky
  • 888
  • 1
  • 12
  • 26
2
votes
1 answer

Problem sending message with my ESP8266 using IFTTT

I am trying to make a simple project where the esp8266 sends an sms to my phone using IFTTT. I have tested my IFTTT applet/recipe and it works fine. I thought it might be a connection issue with my wifi, i have found that to not be the problem…