ESP8266 Developer Zone The Official ESP8266 Forum 2022-05-25T19:19:03+08:00 https://bbs.espressif.com:443/feed.php?f=62 2022-05-25T19:19:03+08:00 2022-05-25T19:19:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3412&p=101289#p101289 <![CDATA[Chit Chat • Re: developer help]]> Statistics: Posted by WhySoCold — Wed May 25, 2022 7:19 pm


]]>
2022-05-04T19:18:40+08:00 2022-05-04T19:18:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=11610&p=101132#p101132 <![CDATA[Chit Chat • Re: how to support the "captive Portal" on ESP8266]]>
The built-in LED will blink 5 times when a password is posted.

Warning! Your saved passwords will not disappear when you restart/power off the ESP8266.

Note: If you want to see the stored passwords go to "172.0.0.1/pass". For changing the SSID, go to "172.0.0.1/ssid"

Statistics: Posted by ankitsingh0012 — Wed May 04, 2022 7:18 pm


]]>
2022-03-14T11:21:03+08:00 2022-03-14T11:21:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75304&p=100763#p100763 <![CDATA[Chit Chat • Re: ESP8266 successfully connects to computer wifi hotspot, but not home wifi]]>
e.g. net.dns.setdnsserver("8.8.8.8", 0)

Statistics: Posted by carlojoe — Mon Mar 14, 2022 11:21 am


]]>
2022-03-05T13:31:49+08:00 2022-03-05T13:31:49+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75304&p=100732#p100732 <![CDATA[Chit Chat • ESP8266 successfully connects to computer wifi hotspot, but not home wifi]]>

Code:

-- start of relevant code
conn = nil


-- This code defines the variable "conn" as a command to create a client.
-- Documentation for net.createConnection can be found here. https://nodemcu.readthedocs.io/en/dev/en/modules/net/#netcreateconnection
-- The format of the variable & parameters are: net.createConnection(type, secure); i.e. Type = TCP
conn=net.createConnection(net.TCP, 0)


-- This code attempts to connect to the IFTTT Maker channel on port 80.
-- Documentation for the :dns function can be found here: https://nodemcu.readthedocs.io/en/dev/en/modules/net/#netsocketdns
-- If a connection can be made, then the connection function below will be executed, and the IP address printed.

conn:dns("maker.ifttt.com",function(conn,ip)

-- When connected to computer wifi, "ip" returns true and executes block.  When connected to home wifi "ip" returns false and the block is not executed.

    if (ip) then
        print("We can connect to " .. ip)
        conn:connect(80,ip)
    else
      dofile("3_delay.lua")
    end
end)

-- end of relevant code

Statistics: Posted by carlojoe — Sat Mar 05, 2022 1:31 pm


]]>
2022-02-05T19:09:25+08:00 2022-02-05T19:09:25+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2840&p=100625#p100625 <![CDATA[Chit Chat • Re: ANNOUNCEMENT: Chinese holiday Oct 2-7]]>
But I didnt get any news..Please share the news..

Statistics: Posted by kali00 — Sat Feb 05, 2022 7:09 pm


]]>
2022-01-04T14:43:04+08:00 2022-01-04T14:43:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75273&p=100521#p100521 <![CDATA[Chit Chat • Re: I need a new wireless printer]]> Statistics: Posted by Jessedylan0 — Tue Jan 04, 2022 2:43 pm


]]>
2021-12-11T06:39:29+08:00 2021-12-11T06:39:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=100440#p100440 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]> Statistics: Posted by spiceagent11 — Sat Dec 11, 2021 6:39 am


]]>
2021-11-29T12:32:51+08:00 2021-11-29T12:32:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=955&p=100406#p100406 <![CDATA[Chit Chat • Re: Developement environment in Windows OS]]> Statistics: Posted by krunkerio — Mon Nov 29, 2021 12:32 pm


]]>
2021-11-17T17:18:31+08:00 2021-11-17T17:18:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9394&p=100370#p100370 <![CDATA[Chit Chat • Re: EspNowCopter the ESP8266 based quadcopter using ESPNOW]]> Statistics: Posted by breehand — Wed Nov 17, 2021 5:18 pm


]]>
2021-10-13T17:46:31+08:00 2021-10-13T17:46:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=79&p=100282#p100282 <![CDATA[Chit Chat • Re: Greetings from HR Department of Espressif Systems]]> Statistics: Posted by talleychan — Wed Oct 13, 2021 5:46 pm


]]>
2021-07-20T14:14:31+08:00 2021-07-20T14:14:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=100074#p100074 <![CDATA[Chit Chat • Re: How to use the wifi light sleep?]]>

Statistics: Posted by ab_d — Tue Jul 20, 2021 2:14 pm


]]>
2021-07-20T10:39:55+08:00 2021-07-20T10:39:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75133&p=100073#p100073 <![CDATA[Chit Chat • Re: Please advise me about setup environment for ESP8266/ESP32 RTOS.]]> https://docs.espressif.com/projects/esp ... index.html

Statistics: Posted by Her Mary — Tue Jul 20, 2021 10:39 am


]]>
2021-07-20T10:38:24+08:00 2021-07-20T10:38:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=100072#p100072 <![CDATA[Chit Chat • Re: How to use the wifi light sleep?]]> https://github.com/espressif/ESP8266_RT ... power_save

Statistics: Posted by Her Mary — Tue Jul 20, 2021 10:38 am


]]>
2021-07-19T15:40:18+08:00 2021-07-19T15:40:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=100069#p100069 <![CDATA[Chit Chat • Re: How to use the wifi light sleep?]]> Ive been trying to use Light Sleep mode for my project for which im using ESP8266 with RTOS SDK. Ive tried the API's given for sleep mode functions as recommended in esp8266 RTOS SDK Programming Guide's API Reference, from esp_sleep.h file, but couldn't find the declaration of those functions in its respective .c file. Also, I did notice a file named "esp_fsleep.c", which contains all the functions that I need for sleep mode to work, but all of those functions are defined as "ESP_LOGE(TAG, "We have removed this api, please do not call");"

So anyone who has faced this issue, please help me with this or let me know if ive missed something that's needed to be done to make it work! Any small working example would be a great help too!

best,
ab_d

Statistics: Posted by ab_d — Mon Jul 19, 2021 3:40 pm


]]>
2021-07-06T11:44:27+08:00 2021-07-06T11:44:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=67223&p=100042#p100042 <![CDATA[Chit Chat • Re: ESP866 talk Enocean RF Protocol through UART]]> Statistics: Posted by aureasloan — Tue Jul 06, 2021 11:44 am


]]>
2021-06-12T12:46:13+08:00 2021-06-12T12:46:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=99990#p99990 <![CDATA[Chit Chat • Re: How to use the wifi light sleep?]]> Statistics: Posted by talleychan — Sat Jun 12, 2021 12:46 pm


]]>
2021-06-04T13:12:30+08:00 2021-06-04T13:12:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75133&p=99956#p99956 <![CDATA[Chit Chat • Re: Please advise me about setup environment for ESP8266/ESP32 RTOS.]]> Statistics: Posted by shawnm — Fri Jun 04, 2021 1:12 pm


]]>
2021-06-04T05:37:33+08:00 2021-06-04T05:37:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75133&p=99954#p99954 <![CDATA[Chit Chat • Please advise me about setup environment for ESP8266/ESP32 RTOS.]]>
I just make my dicision to learn about ESP8266 RTOS. But I some experience about Arduino with ESP8266/ESP32.

Please advise me about setup environment for ESP8266/ESP32 RTOS on Windows 10.

:D


Thank you in advance.

Statistics: Posted by halu — Fri Jun 04, 2021 5:37 am


]]>
2021-05-11T09:52:45+08:00 2021-05-11T09:52:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74938&p=99743#p99743 <![CDATA[Chit Chat • Re: 使用arduino生成bin文件,怎么方便烧录(下载)到ESP8266/32?]]> Statistics: Posted by steveszhang2021 — Tue May 11, 2021 9:52 am


]]>
2021-04-29T17:57:08+08:00 2021-04-29T17:57:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74943&p=99710#p99710 <![CDATA[Chit Chat • ESP8266能否外加功率放大器]]> 如果不行的话,鞥否利用8266芯片加功率放大器自己设计一个模块?

Statistics: Posted by zzf — Thu Apr 29, 2021 5:57 pm


]]>
2021-04-24T16:21:47+08:00 2021-04-24T16:21:47+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74938&p=99696#p99696 <![CDATA[Chit Chat • 使用arduino生成bin文件,怎么方便烧录(下载)到ESP8266/32?]]> Statistics: Posted by steveszhang2021 — Sat Apr 24, 2021 4:21 pm


]]>
2021-04-12T17:35:00+08:00 2021-04-12T17:35:00+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1961&p=99615#p99615 <![CDATA[Chit Chat • Re: Number of users connected limit]]> Statistics: Posted by manycoons — Mon Apr 12, 2021 5:35 pm


]]>
2021-02-17T14:45:23+08:00 2021-02-17T14:45:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74645&p=99332#p99332 <![CDATA[Chit Chat • Arduino UNO + ESP866 Wifi problems]]> apologies in advance if I am posting in the wrong section.
I want to do get/post request with Arduino uno and be able to detect a word from the output.
If that word has been found arduino should blink the led (13) and edit the file to delete that word (post/get)
At the moment... when the connection works :/ it read the word and blink the led but it's very slow. There is any way to make it faster?
Also.. is that the correct way?

Any, suggestions? Please

Statistics: Posted by jerremyhamston — Wed Feb 17, 2021 2:45 pm


]]>
2021-02-02T18:58:42+08:00 2021-02-02T18:58:42+08:00 https://bbs.espressif.com:443/viewtopic.php?t=12391&p=99284#p99284 <![CDATA[Chit Chat • Re: the difference between ESP-WROOM-02 and ESP-WROOM-02D]]> standard deviation calculator

Statistics: Posted by lindaperryly — Tue Feb 02, 2021 6:58 pm


]]>
2021-01-23T23:31:21+08:00 2021-01-23T23:31:21+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74590&p=99259#p99259 <![CDATA[Chit Chat • ESP8266 and serial USB communications by PC]]> I try to make ES8266 communicate with PC via USB, with textual command lines (max 20 characters)
I use Arduino IDE on ESP.
I tried with VBA and with Visual Studio (VS).
ESP8266 used CP1202 and ESP-01 used CH340 interface. Same for both cases.
I use Rx and Tx for communication and it is not possible to use the serial.monitor as debug.
If I activate PORTX with IDE Arduino I can write and read on the USB port, both with VBA and VS,
but if I disconnect USB and ESP and then reconnect it,
the connection with USB is restored and the peripheral recognized by the PC,
the device is recognized by VBA and VS,
but the characters I convey are unrecognizable.
I cannot use serial.monitor for debugging and I have written results of the reading from PC to ESP on the EEPROM for to read it on the next boot.
I believe that the problem is due to the lack of the driver disactivated on the USB port on the PC, which IDE Arduino launches regularly,
I don't know what files they are and where I can find them. I would like to call them with shell command from VBA / VS. I close if anyone can help me.
Thanks for your attention.
Mauro

Statistics: Posted by Mauro.Felix — Sat Jan 23, 2021 11:31 pm


]]>
2020-12-10T09:49:34+08:00 2020-12-10T09:49:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=95536#p95536 <![CDATA[Chit Chat • Re: How to use the wifi light sleep?]]> Statistics: Posted by peterleonard — Thu Dec 10, 2020 9:49 am


]]>
2020-11-25T11:52:07+08:00 2020-11-25T11:52:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=67223&p=92273#p92273 <![CDATA[Chit Chat • Re: ESP866 talk Enocean RF Protocol through UART]]> https://github.com/espressif/ESP8266_RT ... eripherals

Statistics: Posted by Her Mary — Wed Nov 25, 2020 11:52 am


]]>
2020-11-13T21:32:18+08:00 2020-11-13T21:32:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=67223&p=91452#p91452 <![CDATA[Chit Chat • ESP866 talk Enocean RF Protocol through UART]]>
I'm new on ESP8266 Univers, I would like to make my ESP8266 talk Enocean ( RF Protocol ) there is a module to talk Enocean using TX and RX (UART) connection, but I don't know how to read/write to the UART with the ESP8266. I use the ESP8266 RTOS SDK. If anyone can help me please
Thanks

Statistics: Posted by idhe — Fri Nov 13, 2020 9:32 pm


]]>
2020-10-02T16:03:16+08:00 2020-10-02T16:03:16+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=89573#p89573 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]> The sooner Espressif roll BOTH ESP8266 and ESP32 into a single IDF, the better! run 3

Statistics: Posted by handoi — Fri Oct 02, 2020 4:03 pm


]]>
2020-09-29T16:48:26+08:00 2020-09-29T16:48:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9191&p=89346#p89346 <![CDATA[Chit Chat • Re: esp8266 hw_timer]]> Statistics: Posted by qianaposey — Tue Sep 29, 2020 4:48 pm


]]>
2020-08-06T18:48:27+08:00 2020-08-06T18:48:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=82283#p82283 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]> Statistics: Posted by krankins — Thu Aug 06, 2020 6:48 pm


]]>
2020-07-09T13:28:26+08:00 2020-07-09T13:28:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=81063#p81063 <![CDATA[Chit Chat • Re: How to use the wifi light sleep?]]> Statistics: Posted by hazelmark760 — Thu Jul 09, 2020 1:28 pm


]]>
2020-06-18T16:50:20+08:00 2020-06-18T16:50:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3427&p=80233#p80233 <![CDATA[Chit Chat • Re: system_restore(); it's gives the [W]sec fd error]]> Statistics: Posted by annejones — Thu Jun 18, 2020 4:50 pm


]]>
2020-03-28T20:53:43+08:00 2020-03-28T20:53:43+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=74924#p74924 <![CDATA[Chit Chat • Re: How to use the wifi light sleep?]]>
gladysjenkins2019 wrote:
So do I need to add code lines in my setup to make sure the ESP is in client mode and light sleeping is enabled
ResumeWritingServicesUS


This PDF will clear you all questions regarding the Wifi Light sleep...
https://www.espressif.com/sites/default ... ons_en.pdf

Statistics: Posted by Guest — Sat Mar 28, 2020 8:53 pm


]]>
2020-03-19T07:32:52+08:00 2020-03-19T07:32:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=74399#p74399 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]> Hopefully they will polish that SDK and make it super efficient

Statistics: Posted by Deous — Thu Mar 19, 2020 7:32 am


]]>
2020-03-16T13:25:10+08:00 2020-03-16T13:25:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=74330#p74330 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]>

Code:

    Install Git For Windows
    Install Python 3.x (ESP-IDF makes a note that their may be issues with 3.x and to use 2.7)
    Install CMake For Windows
          When the installer asks for Install Options, select ‘Add CMake to the system PATH for the current user’.
    Download Ninja
          Extract the executable file to the bin folder within CMake.
          As CMake is now in the PATH environment variable, you won’t have to add another PATH.
    Download the Toolchain
              ESP-IDF             https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_2_0-esp-2019r2-win32.zip
              ESP8266             https://dl.espressif.com/dl/xtensa-lx106-elf-win32-1.22.0-100-ge567ec7-5.2.0.zip
         Create a folder called esp32 (or esp8266)
         Extract xtensa-esp32-elf (or xtensa-lx106-elf) folder into it.
    Download the SDK
         Open PowerShell and navigate to the esp32/esp8266 folder.
         Run 
             git clone --recursive https://github.com/espressif/esp-idf.git
             git clone --recursive https://github.com/espressif/ESP8266_RTOS_SDK.git
     The folder structure will look like this
               esp32                                    esp8266
                 |-- esp-idf                            |-- ESP8266_RTOS_SDK
                 └-- xtensa-esp32-elf                   └-- xtensa-lx106-elf
    Install the Python dependencies
            pip install -r "path\to\esp32\esp-idf\requirements.txt"

For ESP-IDF pre 4.0 and ESP RTOS SDK v3.x, you’ll need to supply a prebuilt binary called mconf-idf. Place the files in esp8266\ESP8266_RTOS_SDK\tools

Statistics: Posted by mriksman — Mon Mar 16, 2020 1:25 pm


]]>
2020-03-16T11:28:52+08:00 2020-03-16T11:28:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=74327#p74327 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]> Can you tell the steps of your toolchain installation in details ? Thanks

Statistics: Posted by Deous — Mon Mar 16, 2020 11:28 am


]]>
2020-03-16T05:38:04+08:00 2020-03-16T05:38:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=74323#p74323 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]> What issues are you facing?

Statistics: Posted by mriksman — Mon Mar 16, 2020 5:38 am


]]>
2020-03-16T04:47:34+08:00 2020-03-16T04:47:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=74321#p74321 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]> I was able to use only toolchain 1.0 (Windows 10) with Python 2.7

Statistics: Posted by Deous — Mon Mar 16, 2020 4:47 am


]]>
2020-03-15T13:07:39+08:00 2020-03-15T13:07:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=74297#p74297 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]> A `git describe` in the sdk directory shows 3.2-405 for ESP8266 RTOS SDK and 4.2-dev-662 for ESP-IDF.

Statistics: Posted by mriksman — Sun Mar 15, 2020 1:07 pm


]]>
2020-03-15T03:47:20+08:00 2020-03-15T03:47:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=74289#p74289 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]> Statistics: Posted by Deous — Sun Mar 15, 2020 3:47 am


]]>
2020-03-13T23:41:48+08:00 2020-03-13T23:41:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=74242#p74242 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]> The sooner Espressif roll BOTH ESP8266 and ESP32 into a single IDF, the better!

Statistics: Posted by mriksman — Fri Mar 13, 2020 11:41 pm


]]>
2020-03-13T23:31:58+08:00 2020-03-13T23:31:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=74241#p74241 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]> The code is not entirely identical but uses same esp-idf style and it is ridiculously easy to modify for esp8266.

Statistics: Posted by Deous — Fri Mar 13, 2020 11:31 pm


]]>
2020-03-13T22:04:26+08:00 2020-03-13T22:04:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=55269&p=74236#p74236 <![CDATA[Chit Chat • ESP8266 code loading?]]>
I have been looking about on the various Arduino pages but cant find something with explains how to load the ESP8266 so that it can poll the meters and send the data via wifi? I can connect to the ESP8266 fine but how much code has to be loaded on it and how much is running on a RPi?

Hoping someone can explain which or how many of the INO files etc need to be flashed (if any?)

Statistics: Posted by Guest — Fri Mar 13, 2020 10:04 pm


]]>
2020-03-11T16:13:16+08:00 2020-03-11T16:13:16+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=74172#p74172 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]> Statistics: Posted by mriksman — Wed Mar 11, 2020 4:13 pm


]]>
2020-03-03T23:33:39+08:00 2020-03-03T23:33:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=26159&p=73988#p73988 <![CDATA[Chit Chat • Re: Compiling rtos sdk idf project with CMake]]>
I tested it and works fine. No flash tool needed or Arduino hassle.
I tested esp-01 and esp8285 all works very nice and compiles with CMake
Just download sdk and new toolchain
Cheers

Statistics: Posted by Deous — Tue Mar 03, 2020 11:33 pm


]]>
2020-03-02T16:41:24+08:00 2020-03-02T16:41:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=12293&p=73949#p73949 <![CDATA[Chit Chat • Re: ESP8266EX Can write but cant read]]> Statistics: Posted by Guest — Mon Mar 02, 2020 4:41 pm


]]>
2020-02-11T04:41:45+08:00 2020-02-11T04:41:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=54768&p=73351#p73351 <![CDATA[Chit Chat • ESP8266 code loading?]]>
I have been looking about on the various Arduino pages but cant find something with explains how to load the ESP8266 so that it can poll the meters and send the data via wifi? I can connect to the ESP8266 fine but how much code has to be loaded on it and how much is running on a RPi?

Hoping someone can explain which or how many of the INO files etc need to be flashed (if any?) Thanks.

Off topic. Does anyone know If you can retrieve data from web pages streight into access table, such as a web scraping software https://mydataprovider.com/tools/ does it ?

I have no idea how to do that yet. Any ideas Guys ?

Statistics: Posted by Guest — Tue Feb 11, 2020 4:41 am


]]>
2020-02-08T22:28:32+08:00 2020-02-08T22:28:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=73258#p73258 <![CDATA[Chit Chat • Re: How to use the wifi light sleep?]]>
gladysjenkins2019 wrote:
So do I need to add code lines in my setup to make sure the ESP is in client mode and light sleeping is enabled?


Gladys, yes, Automatic Light Sleep is not enabled by default, only Automatic Modem Sleep, so you need to add the wifi_set_sleep_type(LIGHT_SLEEP_T) SDK call to enable Light Sleep. I see power drop to ~ 4mA during Light Sleep between beacons. It will go lower than 4mA, but you have to disable all timers (which loses the WiFi connection).

Depending on the DTIM listen interval Light Sleep runs at, you may miss packets in Station mode. If you can't afford to lose data, then you will want to use the default Modem Sleep instead (~15mA between TIM beacons, but no lost data). You don't have to do anything in your code to get Modem Sleep, it's running soon after you establish a connection. If you have frequent 'idle' calls in your program you'll see the power drop. For the Arduino IDE, 'idle' = delay(). Without 'idle', the modem never sleeps and substrate current is ~70mA.

Statistics: Posted by Guest — Sat Feb 08, 2020 10:28 pm


]]>
2020-01-09T19:48:17+08:00 2020-01-09T19:48:17+08:00 https://bbs.espressif.com:443/viewtopic.php?t=12391&p=71298#p71298 <![CDATA[Chit Chat • Re: the difference between ESP-WROOM-02 and ESP-WROOM-02D]]> Statistics: Posted by Guest — Thu Jan 09, 2020 7:48 pm


]]>