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

Delete lines in SPIFFS (ESP8266/Arduino)

I am trying to create a function that will delete a line from a text file stored in SPIFFS on an ESP8266. I have tried to follow the "space overwrite" method found here https://forum.arduino.cc/index.php?topic=344736.msg2380000#msg2380000, but I…
Pinja
  • 33
  • 1
  • 4
3
votes
1 answer

Node mcu (1.0) ESP8266 12E doesn't respond after IDLE time in soft AP mode

I am trying to set up node mcu as Access Point with static IP. I am able to connect to the AP using tcp sockets and receive response from it. However, if the client is not connected to it for a certain amount of time, node MCU doesn't respond at…
zero
  • 150
  • 1
  • 16
3
votes
0 answers

How to fix "WiFi is not declared on the scope."?

In my code I am receiving a "Wifi is not declared in this scope" error when compiling to a NodeMCU board. The code has some customization, but regarding the WiFi and lines where it calls Wifi functions, it has the same structure to the source…
Vinicivs
  • 191
  • 1
  • 7
3
votes
0 answers

o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header - WebSocket - STOMP + SockJS

The Problem I have Spring Boot application with websocket (STOMP). I sending JSON-strings via esp8260. Everything is fine if Spring Security is turned off, but if I turn on Security I getting followed error: 2019-03-12 19:42:46.729 INFO 6568 ---…
Marcin
  • 33
  • 2
  • 7
3
votes
3 answers

WebSockets, WebRTC, UDP: how to communicate with esp8266 real-time

I am working on a esp8266 library for using a web enable device (mostly just phones) to control a robot. The user connects to a server running on the esp and the library uses WebSockets to send updates about buttons, joysticks, and/or anything…
Dennis Ranish
  • 573
  • 1
  • 4
  • 18
3
votes
0 answers

How do I detect a broken client socket without pinging the server

I'm making a client socket app that connects to an ESP8266-01 and the only thing i cant get my head around is how to detect a broken socket without pinging the server (ESP8266-01). So far I found 3 cases in which i consider the socket to be broken…
globalturist
  • 71
  • 1
  • 7
3
votes
4 answers

How to retrieve the flashed binary in ESP8266

I was able to flash a micropython binary which I'd cross compiled some 6 months ago, and it was working fine. It was built from master branch at that point of time, and I did not save the code, nor the binary. Today, when I again compiled, the…
Ouroboros
  • 1,432
  • 1
  • 19
  • 41
3
votes
1 answer

Udp connection problem between esp8266 and Unity

I am trying to connect a Wemos D1 mini ESP8266 board to unity in order to send a button status to unity. First I developed the code for the Wemos D1 mini and checked by using a UDP terminal and it worked fine I was sending a message from the…
3
votes
3 answers

CORS issue in nodemcu esp8266

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.100.2:8100' is therefore not allowed access. The response had HTTP status…
Sachin
  • 2,627
  • 1
  • 19
  • 35
3
votes
1 answer

Azure Iothub-Explorer epoch error?

I'm trying to look at messages that are being sent from my esp8266 module via iothub-explorer but I'm getting the following error. The command I'm running iothub-explorer monitor-events DeviceID --login…
Jim
  • 373
  • 5
  • 18
3
votes
1 answer

How to capture HTTPS requests with espconn?

The following code allows to capture all requests coming to my esp8266 (running NodeMCU) and show my own page: static int enduser_setup_dns_start(void) { state->espconn_dns_udp = (struct espconn *) c_malloc(sizeof(struct espconn)); esp_udp…
LA_
  • 19,823
  • 58
  • 172
  • 308
3
votes
2 answers

How does HomeKit find nearby devices?

First of all I am sorry if this is not the most appropriate forum to post this question. I looked at AskDifferent which seems not technical enough for this and I looked at Super User which seems too technical for it. Hence why I am asking it here as…
levidhuyvetter
  • 401
  • 5
  • 16
3
votes
1 answer

RC522 with ESP8266 not working Arduino uno

I have written below code for Arduino Uno to scan an RFID card using a RC522 module and an ESP8266 module to connect to my router. Now when I scan any card it should read the card number and send a request to my server's IP address and get the…
user3997016
3
votes
2 answers

ESP8266 - PubSubClient - Message character limit

I am unable to send messages over a certain limit. I have looked at the docs and have already tried to redefine the max packet size: #define MQTT_MAX_PACKET_SIZE 512 I've even tried increasing the limit to ridiculous limits and still the message is…
Timmo
  • 2,266
  • 4
  • 34
  • 54
3
votes
1 answer

ESP8266 Captive portal with pop-up

Has anyone ever succeeded in getting a captive portal to cause a pop-up for the redirected content to a specific landing page on an Arduino or ESP8266? I've tried everything under the sun and while my android will complain about a non-connected…
Scott
  • 7,983
  • 2
  • 26
  • 41