From 75b0cd0828d7ee74be1ab993938fea0c9e6894a9 Mon Sep 17 00:00:00 2001 From: gijsio <67470426+gijsio@users.noreply.github.com> Date: Fri, 4 Dec 2020 14:12:26 +0100 Subject: [PATCH] added example ABP parameters --- content/tutorials/networks/lora/nvram.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/content/tutorials/networks/lora/nvram.md b/content/tutorials/networks/lora/nvram.md index 84d722c..25ebb55 100644 --- a/content/tutorials/networks/lora/nvram.md +++ b/content/tutorials/networks/lora/nvram.md @@ -19,10 +19,12 @@ sleep_time = 1000 print("init LoRa") lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.EU868) time.sleep(1) #Allows us to exit the code using ctrl+c + # create an ABP authentication params -dev_addr = struct.unpack(">l", ubinascii.unhexlify(''))[0] -nwk_swkey = ubinascii.unhexlify('') -app_swkey = ubinascii.unhexlify('') +dev_addr = struct.unpack(">l", ubinascii.unhexlify('00000005'))[0] +nwk_swkey = ubinascii.unhexlify('2B7E151628AED2A6ABF7158809CF4F3C') +app_swkey = ubinascii.unhexlify('2B7E151628AED2A6ABF7158809CF4F3C') + lora.nvram_restore() if(lora.has_joined() == False): print("LoRa not joined yet")