sigfox payload formatting
-
I have aproblem and cant solve it
i will need you help on this please
for the sigfox payload i have this
payload=['0x11', '0x9d', '0x57', '0xae', '0x38', '0xe0', '0xd1', '0x5', '41', '4e', '57', '4e'] s.send(bytes(payload))
i get an error TypeError: can't convert str to int
how can i convert that list to bytes... i think they are already on bytes
-
@livius said in sigfox payload formatting:
@iotmaker
you can simply convert itb=[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
-
@iotmaker
you can simply convert itb=[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 ?
-
how can i remove the ' ' from my payload?
-
@iotmaker said in sigfox payload formatting:
what aboutpayload=[0x11, 0x9d, 0x57, 0xae, 0x38, 0xe0, 0xd1, 0x5, 0x41, 0x4e, 0x57, 0x4e] s.send(bytes(payload))