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

    No gpy wifi AP on power up

    Scheduled Pinned Locked Moved Support & Troubleshooting
    gpywififlash
    4 Posts 2 Posters 556 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.
    • K Offline
      kjm
      last edited by

      My gpy no longer establishes an ad hoc wifi on powerup. Both main.py & boot.py are empty so something else in flash is permanently disabling the bootup AP.

      
      Pycom MicroPython 1.18.1.r4 [v1.8.6-849-dfa1176] on 2018-11-12; GPy with ESP32
      Type "help()" for more information.
      >>>
      >>> from network import WLAN; wlan=WLAN(); print(wlan.mode())
      1
      >>>
      

      the mode=1 tells me it's booting in STA mode, but it's not configured

      >>> wlan.ifconfig()
      ('0.0.0.0', '0.0.0.0', '0.0.0.0', '0.0.0.0')
      

      Presumably come config parameter in flash is responsible but I can't find any hint in the docs as to what it could be?

      W 1 Reply Last reply Reply Quote 0
      • W Offline
        wghirakawa @kjm
        last edited by

        @kjm in your pymakr terminal try

        Import machine
        machine.reset()
        #once reset try
        Import pycom
        Pycom.wifi_on_boot(True)
        Import machine
        Machine.reset()
        

        If that doesn't work, I would suggest re flashing the firmware. Make sure you have the up-to-date firmware.

        If everyone in the world could do their passion, the world would be an unbelievable place!

        1 Reply Last reply Reply Quote 0
        • K Offline
          kjm
          last edited by

          Yea! That worked (once I removed the capitals). Interesting side bonus. The gpy FTP refused Filezilla connections in STA mode through my router once I lost the powerup ad hoc network, FTP now working again in both STA & AP modes. Can you tell me where in flash the pycom.wifi_on_boot(1) flag is stored? Is there a list in the docs somewhere of other flags that permanently alter the gpy? If so could you link me to it?

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            kjm @kjm
            last edited by

            @kjm I just double checked this. Beware boys & girls. pycom.wifi_on_boot(0) not only permanently disables the power up ad hoc wifi it breaks the gpy FTP server so that it won't work on any wifi network you subsequently join.

            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