changed exit strategy

This commit is contained in:
gijsio
2020-12-04 13:47:39 +01:00
committed by peter-pycom
parent fecefb89f0
commit 5a08a321fd

View File

@@ -18,8 +18,7 @@ import ubinascii
sleep_time = 1000
print("init LoRa")
lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.EU868)
for i in range(0,10):
time.sleep(0.1) #be able to ctrl+c out of this
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('')
@@ -51,4 +50,4 @@ print("received: {}".format(data))
print("sleeping for {} ms".format(sleep_time))
machine.deepsleep(sleep_time)
```
```