mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 06:06:03 +01:00
fixed-lora-abp-example (#102)
Code would fail because we haven't imported module binascii I replaced binascii with ubinascii
This commit is contained in:
committed by
Daniel Spindelbauer
parent
6ebceb3b3b
commit
d2fe159910
@@ -19,7 +19,7 @@ import struct
|
||||
lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.EU868)
|
||||
|
||||
# create an ABP authentication params
|
||||
dev_addr = struct.unpack(">l", binascii.unhexlify('00000005'))[0]
|
||||
dev_addr = struct.unpack(">l", ubinascii.unhexlify('00000005'))[0]
|
||||
nwk_swkey = ubinascii.unhexlify('2B7E151628AED2A6ABF7158809CF4F3C')
|
||||
app_swkey = ubinascii.unhexlify('2B7E151628AED2A6ABF7158809CF4F3C')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user