Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Foxhound
    3. Best
    F
    • Continue chat with Foxhound
    • Start new chat with Foxhound
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by Foxhound

    • RE: [Solved]Exceptions & timeouts with GET Requests

      @m5-docs so it turns out I was forgetting to close the response.

      try:
          lResponse = urequests.get( URL , headers = self.fHeaders )
          content = ujson.loads( lResponse.content )
          lResponse.close()
          return abs( content )
      except:
          return 0
      

      Solved the issue.

      posted in Micropython
      F
      Foxhound
    • RE: Continue to try Wifi Connection indefinitely, and go back to the connection/reboot if a try fails.

      @ajb2k3
      Okay awesome, thanks mate, have it working well now. Just need to make some modifications.

      Auto connect seems to only work when called, and looks like it will throw an error if not connecting. I've found the code on the repo, so I'll modify that to continue trying when booting up if no wifi is found, and upon disconnection, call the function again.

      Won't get much time to work on it for a little bit but will report back next week with my progress. Thanks very much for your assistance.

      Also, download didn't work but ampy working really well now, thankyou!

      posted in Micropython
      F
      Foxhound
    • RE: Continue to try Wifi Connection indefinitely, and go back to the connection/reboot if a try fails.

      @ajb2k3

      Awesome, of course, I needed to call lcd.FONT_DejaVu24.
      However, I did manage to get lcd.font(lcd.FONT_DejaVu24) to work fine for me. I just called it at the top of my script and all is well.

      @lukasmaximus
      Thanks, I'll take a look at that, so far DejaVu24 is working well for me. But if i need to make it larger I'll be sure to check that out.

      posted in Micropython
      F
      Foxhound