Get intrerface mac config is missing reformatting



  • 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.



  • @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