-->
Page 1 of 2

Using ESP8266 without WiFi and its associated interrupts...

PostPosted: Wed Oct 25, 2017 1:19 pm
by mikekgr
Dear Sirs,
in one of my projects, I want to use ESP8266 more like Arduino, without WiFi and using all of its potential and speed.
So the question is, is there any way to fully "disable" WiFi and all underling support routines and interrupts?

Thanks and Best Regards,
Mike Kranidis

Re: Using ESP8266 without WiFi and its associated interrupts

PostPosted: Wed Oct 25, 2017 4:03 pm
by QuickFix
No, not entirely: the WiFi stack runs in its own "Thread", but you can "Nearly" turn it off completely. :)

What you do is to let the WiFi-stack go to sleep, but since there's always a watchdog timer checking the stack, you'll have to reset that watchdog every once in a while (though it should be possible to completely turn off the watchdog).

See this article on Hackster.io for more information. :idea:

Re: Using ESP8266 without WiFi and its associated interrupts

PostPosted: Wed Oct 25, 2017 4:21 pm
by mikekgr
Thanks a lot dear friend.
I will try to implement it.


QuickFix wrote:No, not entirely: the WiFi stack runs in its own "Thread", but you can "Nearly" turn it off completely. :)

What you do is to let the WiFi-stack go to sleep, but since there's always a watchdog timer checking the stack, you'll have to reset that watchdog every once in a while (though it should be possible to completely turn off the watchdog).

See this article on Hackster.io for more information. :idea:

Re: Using ESP8266 without WiFi and its associated interrupts

PostPosted: Thu Oct 26, 2017 6:43 am
by schufti
there are other (better) ways to disable RF.
you can do
ESP.deepSleep(1000, WAKE_RF_DISABLED);
in setup() if you discover that RF is enabled.
So RF will securely be disabled after reboot and for the loop().

Or have a look at https://github.com/cnlohr/ (especially channel3) for what can be done with esp8266 hacking.