• Basic Package header

    Moved MicroPython lora bytes lopys
    1
    0 Votes
    1 Posts
    753 Views
    No one has replied
  • 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.
  • sigfox payload formatting

    SiPy sipy bytes
    5
    0 Votes
    5 Posts
    2k Views
    I
    @livius said in sigfox payload formatting: @iotmaker you can simply convert it b=[int(x, 16) for x in payload] but question is how do you got this payload? on first you have '0x11' but on last '4e' without 0x ? That worked... did some modification and now we are good. thank you