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
4
votes
3 answers

not able to connect to test.mosquitto.org

I am working on esp8266 and trying to connect to test.mosquitto.org. here is what I got from net m = mqtt.Client("clientid", 60, "user", "password") m:on("connect", function(con) print ("connected") end) m:on("offline", function(con) print…
Ankit jhunjhunwala
  • 155
  • 1
  • 1
  • 11
4
votes
1 answer

ESP8266 send and receive sockets

I'm new to NodeMCU programming for ESP8266. I need to send strings to the server and receive response strings. So I wrote some code, but it doesn't work properly. My program works through time, and then displays a message that the memory is full.…
4
votes
1 answer

Connect to captive portal wifi using ESP8266

I would like to connect an ESP8266 based sensor on a wifi network protected by a captive portal (I've no other option, and I cannot ask for derogation). I have a login/password to connect. From a basic computer, when I'm connected to the network…
iero
  • 401
  • 3
  • 14
3
votes
2 answers

ESP8266 Wifi configuration

I had a Node MCU module as shown in the photo. My nodemcu I had this tutorial from this link:Tutorial link I had a problem with WIFI Configuring which from the code I had online it should be working with the browser 192.168.4.1 as shown as below.…
3
votes
0 answers

Sending Deauthentication Packets by esp8266

I am trying to implement a simple WiFi deauther using my nodemcu but i can't see any disconnection b/w AP(my android's hotspot) & Station ( my second android device) But when i am using a third party tool like Wi-PWN ( available on GitHub ) , is…
Golu
  • 350
  • 2
  • 14
3
votes
1 answer

How does Sonoff quick pairing mode works?

I am trying to replicate the sonoff Quick Pairing Mode in Swift. My question is: how does eWeLink transmits data between the phone and the esp8266 inside the Sonoff without using Bluetooth? As I know you can’t access to another Wi-Fi in iOS from…
SquareInc
  • 61
  • 3
3
votes
0 answers

ESP8266 DNS Lookup with Hostname ending in ".local"

Three or more years ago, I made an Arduino project for a NodeMCU (ESP8266) that connected to my MQTT server. I needed to make some changes to the code (unrelated), rebuilt, and was unable to connect to my MQTT server! After doing some…
Jaron
  • 133
  • 6
3
votes
1 answer

How to instantiate ESP AsyncWebServer inside a class? (arduino esp8266)

Problem: ESP8266 AsyncWebServer only works when I instantiate it as a global but not when I instantiate it inside a class. Here's the two complete sketechs that both generate an error Method 1: trying this without a constuctor to init: #include…
3
votes
2 answers

Neopixel sample code crashing when using a higher number of pixels

Context I'm restarting a personal project that involved an ESP8266 and WS2812Bs (Neopixels). It is worth noting that I do not have any Neopixels hooked up at the moment; I'm simply trying to get a feel for how fast I can update the pixels. I'm…
Alex Larson
  • 137
  • 1
  • 7
3
votes
0 answers

Counting people using wifi packets when phones have randomized mac ids

I want to build a system for counting people based on wifi packets. I am using esp8266 for sniffing packets. But i read that android and iphones are now randomizing mac ids when they are not connected to any network. I thought of using probe…
Daga Arihant
  • 464
  • 4
  • 19
3
votes
1 answer

ESP8266 repeatedly throws Exception(0)

I am making an IoT weighing scale with a load cell connected to an Arduino. The Arduino then sends data to an ESP8266 connected by serial which would subsequently update my database on Google's Firebase. However, my ESP8266 throws an exception when…
Richard Ding
  • 382
  • 3
  • 16
3
votes
1 answer

Understanding IR codes for Samsung TV

Can somebody help me to understand how could I use RAW IR data in an project using ESP8266-HTTP-IR-Blaster library ? I've created a NodeMCU board with an IR sender and receiver according to…
Zsolt Németh
  • 33
  • 1
  • 1
  • 4
3
votes
1 answer

esp8266 internet switch problems

I am trying to make a door relay switch system that i am able to operate from anywhere via port forwarding. I have found a very helpfull guide and code where i based my program…
3
votes
1 answer

Can circuitpython libraries be imported and used in micropython?

I am researching on micropython to use for an IoT project for school using nodeMCU esp8266. one of the use cases requires the device to receive IR signal from an Aircon remote control and save it as well as being able to transmit this code using and…
3
votes
2 answers

Passing a function as a parameter within a class

So I'm trying to enlist the use of ESPAsyncWebServer for a project, and due to the size of said project I'm refactoring my code into a bunch of different libraries. This is to be part of the Client Server handling section. I've determined how to…