forked from Telos4/LoRa-Workshop
Merge branch 'master' of apo/LoRa-Workshop into master
Thanks!
This commit is contained in:
commit
1e54dc4b80
|
@ -85,9 +85,9 @@ devAddr = [0x00, 0x00, 0x00, 0x00]
|
||||||
nwkSKey = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
|
nwkSKey = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
|
||||||
appSKey = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
|
appSKey = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
|
||||||
|
|
||||||
devAddr_hex = " ".join(list(map(lambda x: "{0:02x}".format(x), devAddr))).upper()
|
devAddr_hex = " ".join(["%02X" % (x,) for x in devAddr])
|
||||||
nwkSKey_hex = " ".join(list(map(lambda x: "{0:02x}".format(x), nwkSKey))).upper()
|
nwkSKey_hex = " ".join(["%02X" % (x,) for x in nwkSKey])
|
||||||
appSKey_hex = " ".join(list(map(lambda x: "{0:02x}".format(x), appSKey))).upper()
|
appSKey_hex = " ".join(["%02X" % (x,) for x in appSKey])
|
||||||
print("devAddr: ", devAddr_hex)
|
print("devAddr: ", devAddr_hex)
|
||||||
print("nwkSKey: ", nwkSKey_hex)
|
print("nwkSKey: ", nwkSKey_hex)
|
||||||
print("appSKey: ", appSKey_hex)
|
print("appSKey: ", appSKey_hex)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user