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

    Why MicroWebSrv not runnning on Wipy3.0 ?

    Scheduled Pinned Locked Moved WiPy 2&3
    microwebsrvwipy3.0micropythonnetwork
    2 Posts 2 Posters 702 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.
    • G Offline
      GDA45-78
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • J Offline
        jczic
        last edited by

        Hello,
        If you want, I propose a new powerful embedded Web Server for MicroPython (and CPython) that supports route handlers, modules like WebSockets or PyhtmlTemplate and a lot of simultaneous requests.

        Mostly used on ESP32, Pycom WiPy, STM32 on Pyboard, ... Robust and efficient (thousands requests on CPython!)

        GitHub - Open Source - MIT.

        --> https://github.com/jczic/MicroWebSrv2 <--

        JC`zic

        1 Reply Last reply Reply Quote 1

        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