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

    Get intrerface mac config is missing reformatting

    Scheduled Pinned Locked Moved Bug Report
    2 Posts 2 Posters 3.5k 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.
    • S Offline
      sgu
      last edited by

      In UiFlow using the get interface mac config.
      it reports the mac in a binary version i.e. b'\xa4\xcf\x12m\x95\xa4'

      This is not usable!

      It must be formatted in the ususal format with 6 hexadecimal bytes

      There is an easy solution on that:

      0_1664921586577_bb2c7079-3825-41d9-a04b-70662a3dbca7-image.png

      import ubinascii
      mac_hex = ubinascii.hexlify(wifi_mac,':').decode().upper()

      and then the mac address is format as example: A1:C2:00:FF:45:E5

      Please include this bugifx in the next UiFlow version.

      F 1 Reply Last reply Reply Quote 0
      • F Offline
        flex @sgu
        last edited by

        @sgu Thank you for this solution

        Yes,
        that would be great to have in UIFlow, in Math, a function:
        "Hex from Bytes", with Big/Little, with/without Separator

        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