Wipy 3 issues

  • My WiPy 2 just died so I'm trying to get my WiPy 3 up and running out of the box. Did the firmware upgrade so now it executes boot.py and connects to my network. Now the heartbeat LED is False after boot.py runs. I thought that was weird so I explicitly set heartbeat(true) in boot.py but it won't flash. From the REPL, it shows heartbeat(false). Any ideas what is causing the heartbeat to go false? Main.py is the default, blank version. Here's my boot.py:

    # boot.py -- run on boot-up
    # can run arbitrary Python, but best to keep it minimal
    import network
    import machine
    from machine import SD
    from machine import UART
    from network import WLAN
    import os
    import time
    import pycom
    # Set up WLAN
    wlan = WLAN() # get current object, without changing the mode
    ssid     = 'Mynet'
    password = 'xxxxxxx'
    ip       = ''
    net_mask = ''
    gateway  = ''
    dns      = ''
    uart = UART(0, 115200)
    def init():
        wlan = WLAN(mode=WLAN.STA)
        wlan.ifconfig(config=(ip, net_mask, gateway, dns))
    def connect():
        wlan.connect(ssid, auth=(WLAN.WPA2, password), timeout=5000)
        while not wlan.isconnected():
            machine.idle() # save power while waiting
        cfg = wlan.ifconfig()
        print('WLAN connected ip {} gateway {}'.format(cfg[0], cfg[2]))
    def set():
        if not wlan.isconnected():
    # Set up server
    #server = network.Server()
    # SD card support
    sd = SD()
    os.mount(sd, '/sd')

  • @jmpratt Since there is no configuration data on a WiPy that could get lost, you could try to make a complete erase using esptool.py and then reload the firmware.

  • @robert-hh nope. Just sitting in an expansion board 2.0. nothing connected.

  • @jmpratt I anything connected to P2?

Log in to reply

Pycom on Twitter