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

    Getting Static IP From Arduino - Using MicroPython WLAN

    Scheduled Pinned Locked Moved MicroPython
    3 Posts 2 Posters 188 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.
    • S Offline
      Sn3akyP3t3
      last edited by

      Perhaps the title is a little off. I desire to set a static IP address from Arduino, but for whatever reason I'm not getting the option in the advanced config to even leverage a static IP address. The other option I think exists is using the MicroPython WLAN library to somehow reserve an IP address for a given MAC address. I haven't seen any tutorials specifically for the reserving of an IP address, but I assume it must be feasible.

      This is the very basic code I'm using for the WLAN stuff:

      from network import WLAN
      
      wlan = WLAN()
      wlan.init(mode=WLAN.AP, ssid='I-AM-GROOT', auth=(WLAN.WPA2,'L3akyP@$$w0rd'), channel=6, antenna=WLAN.INT_ANT)
      

      Don't worry about public posting of credentials, they're not what I'm using anyway.

      In case it matters I'm using Android 10 on a Pixel 4XL.

      O 1 Reply Last reply Reply Quote 0
      • O Offline
        oligauc @Sn3akyP3t3
        last edited by

        @Sn3akyP3t3 At the moment it is not possible to reserve a static IP address for another device. You can however connect to an AP using a static address.

        1 Reply Last reply Reply Quote 0
        • S Offline
          Sn3akyP3t3
          last edited by

          @oligauc Oddly, I'm not getting the option on Android to assign a static IP address. Is there something about this connection's configuration that leads Android to believe that it cannot assign itself a static IP address? I've seen that option before on other networks, but I'm not sure how that option comes and goes.

          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