Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    WLAN Denit or Disable

    Scheduled Pinned Locked Moved LoPy
    3 Posts 2 Posters 146 Views 2 Watching
    Loading More Posts
    • 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.
    • D Offline
      DDA
      last edited by DDA

      Re: machine.idle()
      I disabled the WLAN to save power:

      from network import WLAN
      wlan=WLAN()
      wlan.deinit()
      

      But on injecting the wlan.deinit() to my code, my whole working code which primarily uses LTE() crashes. Even :

      pycom.heartbeat(False)
      pycom.rgbled(0x0000CC) # BLUE LED Power On
      

      portion of code fails to work!!
      I am using GPY on Hologram SIM with 1.18.3, any other newer firmware results in the LTE connection to be too slow.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        Steve Williams @DDA
        last edited by

        @DDA is that a typo in your command? it should wlan.deinit()

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          DDA @Steve Williams
          last edited by

          @Steve-Williams : Yes, it was a typo above but not in my actual code implemented. Thanks for catching that.

          1 Reply Last reply Reply Quote 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
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom