Why MicroWebSrv not runnning on Wipy3.0 ?



  • Hello everyboby, i need some help,

    I m using Wipy3.0 with the last firmware (1.18). I downloaded MicroWebSrv from https://github.com/jczic/MicroWebSrv

    I copied "main.py" to "start.py" and I m using this code in my Main.py :

    from network import WLAN
    
    # configure the WLAN subsystem in station mode (the default is AP)
    wlan = WLAN(mode=WLAN.STA)
    # go for fixed IP settings (IP, Subnet, Gateway, DNS)
    #wlan.ifconfig(config=('10.1.10.178', '255.255.255.0', '10.1.10.254', '10.1.10.178'))
    wlan.scan()     # scan for available networks
    wlan.connect(ssid='my_network', auth=(WLAN.WPA2, 'azerty123'))
    while not wlan.isconnected():
        pass
    print(wlan.ifconfig())
    

    With console into VS Code, I m using the command

    import start
    

    Nothing happens. Nothing to navigator. The command seems blocked.
    I am obliged to make a hard reset

    Someboby to help me.
    Thanks


 

Pycom on Twitter