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

    catch network problem

    Micropython
    3
    4
    6.8k
    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
      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
        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
          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
            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
            • First post
              Last post