Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. Esp8266 with wifi off

Esp8266 with wifi off

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 8.6k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stedew
    wrote on last edited by stedew
    #1

    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.

    1 Reply Last reply
    0
    • E Offline
      E Offline
      emc2
      Hardware Contributor
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      2
      • E emc2

        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.

        S Offline
        S Offline
        stedew
        wrote on last edited by
        #3

        @emc2

        Tnx spot on :thumbsup:

        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.

        1 Reply Last reply
        1
        • A Offline
          A Offline
          AWI
          Hero Member
          wrote on last edited by
          #4

          :thumbsup: sounds good. The processing power and memory would allow for a (basic) controller functionality.

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          16

          Online

          12.0k

          Users

          11.2k

          Topics

          113.4k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular