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

    utimeq in uhttpd for simple webserver

    Scheduled Pinned Locked Moved MicroPython
    micropythonhttp postserver
    6 Posts 4 Posters 2.7k Views 3 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.
    • B Offline
      bnjroos
      last edited by

      Hello,

      I am trying to use the uhttpd and it seems in the current micropython version of WiPy/LoPy it is not yet enabled/implemented. Any idea if this will be enabled some days or not planned ?

      What i want to do is to provide a http server to configure the device via wifi AP at startup, basically GET and POST methods to retrieve and save a configuration file via a form.

      I've tried this also uPython-esp8266-httpserver, removing the unecessary functions and adapting it to WiPy/LoPy however it is not really stable and behaving erratically.

      TIA

      1 Reply Last reply Reply Quote 0
      • B Offline
        bartvrancken
        last edited by

        +1

        i have the same issues, want to build a stable REST service to send/receive LoRa over WiFi. I have the http-server working with socket either it crashes after a few minutes while not getting any request.

        1 Reply Last reply Reply Quote 1
        • B Offline
          bnjroos
          last edited by bnjroos

          Well, me it is working while waiting for requests but sometimes with the same request it crashes, sometimes not.

          1 Reply Last reply Reply Quote 0
          • B Offline
            BetterAuto Pybytes Beta
            last edited by

            It was suggested to me to reuse the webrepl code for a web server. I looked at it and went cross-eyed; too advanced for me yet. But yes, a solid web server is a must-have. I ended up implementing something poor but not crashing using usocket.

            B 1 Reply Last reply Reply Quote 1
            • B Offline
              bnjroos @BetterAuto
              last edited by bnjroos

              @BetterAuto I have a running one in my micropython v1.9 unix implementation using uhttpd, I hope I will soon be able to use it on my PyCom devices.

              1 Reply Last reply Reply Quote 1
              • K Offline
                kincel
                last edited by

                +1

                utimeq enabled in sigfox would be awesome
                I'd like to use the latest version of picoweb on my LoPy but it has utimeq as a dependency.
                https://github.com/pfalcon/picoweb

                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