🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    catch network problem

    Scheduled Pinned Locked Moved Micropython
    4 Posts 3 Posters 8.0k Views 1 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.
    • E Offline
      Efried
      last edited by Efried

      urequest hangs frequently, seems to be an unstable WLAN stack.
      Is it possible having a longer timeout using urequest, or is there some asynchronous version?
      If the connection fails. is there some return of the http status , does response.status_code work?
      How to display exceptions, only via print(e)?
      The program seems to work better when not uploaded but started via RUN, however connection to the M5 Stack is only established via uploading the code to the device.

      1 Reply Last reply Reply Quote 0
      • lukasmaximusL Offline
        lukasmaximus
        last edited by

        Have you tried saving your program as main.py in the root of the device? or do you get the same issues if you download it and run it from the app menu?

        E 1 Reply Last reply Reply Quote 0
        • E Offline
          Efried @lukasmaximus
          last edited by

          @lukasmaximus sometimes the program does not start when uploading into the m5stack as main.py.

          1 Reply Last reply Reply Quote 0
          • D Offline
            dclaar
            last edited by

            I think that I'm running into something similar: When RUN from visual studio, it works great, but when I disconnect it and start standalone, it hangs shortly after connecting to WiFi. It seems that I can do one more print, and that's it.

            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
            • First post
              Last post