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

    OSError: -202

    Scheduled Pinned Locked Moved Atom
    3 Posts 3 Posters 6.8k Views
    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.
    • V Offline
      Vrtisworks
      last edited by

      I'm trying to get the time from an NTP server, but I keep getting OSError: -202 MOST of the time. Every once in a while it would work.

      Took me a while to figure it out, but finally did. So wanted to document it here.

      What isn't clear in the examples and documentation is that even though you obviously have a good internet connect because you can download the code from UIFLOW, when your program runs, you need to reconnect the WiFi.

      Once I did that as part of the initialization, I could get the NTP time just fine.

      1 Reply Last reply Reply Quote 1
      • m5stackM Online
        m5stack
        last edited by

        thank you feedback. we will add this note info to the tutorial.

        1 Reply Last reply Reply Quote 0
        • W Offline
          wjcoyne
          last edited by

          Hi there,
          Can you give me a link to this tutorial?
          Or maybe a snippet of the code so that I can see the steps to take?
          I have been searching for a way to do an NTP time synch on an M5StickC for a while now, preferably using Blockly and UIFlow, but yet to find a reliable answer.
          Thanks.
          Wayne.

          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