Esp8266 with wifi off
-
Hello,
I have a small question and maybe someone else already knows the answer.
For testing i want to use a esp8266 (esp12 /nodemcu board) with a nrf24L01+) as a GW (serial).
I have this working but i want to shut down the WIFI completely what instruction i have to use for this?wifi_set_sleep_type(MODEM_SLEEP_T); delay(1); system_deep_sleep_set_option(MODEM_SLEEP_T);```
I don't know exactly and also while testing i was pinging the wrong ip so i got a little confused
What i basicly want to do is use the esp as a high performance GW/node.
So any suggest are welcome.
regards,
Stefan.
-
Make sure you include this in your sketch
#include <ESP8266WiFi.h>
Then add the following lines at the beginning of your setup()
WiFi.disconnect(); WiFi.mode(WIFI_OFF); WiFi.forceSleepBegin(); delay(1);
It should totally disable ESP WiFi functions and basically you end up with an arduino nano.
-
Tnx spot on
Before i measure 88mA and now ~ 30mA. In reality the profit (% saving) will be even higher. The test setup is with all node mcu hardware so there will definitly be a higher gain with a "bare" esp.
As for some may ask: why use a esp (nodeMCU) as a arduino?
-"Solid" Integrated 3v3 regulator
-Good RF design(shielding)
-USB RS232 interface
-High processing power (if needed).-I could not get the wifi gateway rock solid (compared to the RS232) .
From the moment domoticz disconnect (or the ESP lost connection) there was no communication anymore without an intervention to domoticz.Regards,
Stefan.
-
sounds good. The processing power and memory would allow for a (basic) controller functionality.
Suggested Topics
-
Update RF24 library to latest version
Bug Reports β’ 23 Mar 2014, 23:37 β’ andriej 24 Mar 2014, 22:52 -
No merge into master in the last 5 years, should we use development?
General Discussion β’ 23 Sept 2024, 17:48 β’ kiesel 11 days ago -
Which device I have to use to connect with accelerometer before connecting to my pc?
General Discussion β’ 24 Jan 2023, 17:16 β’ Yada Kijsathan 20 days ago -
Is it possible to extract child ID from a just sent message?
General Discussion β’ 8 Nov 2021, 09:21 β’ Nigel31 6 days ago -
ESP-NOW
General Discussion β’ 22 Apr 2018, 05:58 β’ NeverDie 17 Feb 2025, 22:24 -
Human presence sensors....
General Discussion β’ 31 Jan 2025, 10:54 β’ skywatch 9 Feb 2025, 19:36