• Access LoPy mac address without using atom.

    LoPy lopy mac address serial
    4
    0 Votes
    4 Posts
    528 Views
    P
    @hobbypy any programming language with a serial library should work. simply open a serial connect to the board via your preffered language / framework. and send the code as a string over it. The response will come back over serial just like the REPL does.
  • Finding own MAC address.

    SiPy sypy mac address bluetooth
    2
    1 Votes
    2 Posts
    898 Views
    A
    Hi, have you find out how to discover Bluetooth Mac address? i cannot find this information nowhere. machine.unique_id and network.WLAN().mac() commands give the same mac address but if you put the device in ble advertising mode and scan the traffic with an Android app, you can see it is different from the previous ones.
  • 0 Votes
    4 Posts
    2k Views
    S
    @jmarcelino ok, thanks. The Lopy was in AP mode. I will give it a try in STA mode. Cheers Mark
  • 0 Votes
    4 Posts
    2k Views
    robert-hhR
    @timeb The data returned by lora.mac() is a 8 byte binary quantity in a bytes object. These bytes may not be printable chars. And it is also not an integer, and can therefore not be printed with the %x specifier. If you want to print it in a ASCII-Hex representation, you have to convert that with ubinascii.hexlify, like you did, and print it with the %s specifier. The results is a string. How you further proceed with the data, is up to you. You could use the binary object or the string.