I have a Things Gateway setup here with a ThingsNode connecting and talking to it using ABP with no issue.
However, my poor little Pycom fipy will only connect with ABP. If I try the example below using OTAA I get not a peep on the TTN gateway and the fipy just loops printing “Not joined yet”.
Any ideas on how I can debug, see what is happening?
from network import LoRa
import time
import binascii
lora = LoRa(mode=LoRa.LORAWAN)
app_eui = binascii.unhexlify('<app eui key here>')
app_key = binascii.unhexlify('<app key here>')
lora.join(activation=LoRa.OTAA, auth=(app_eui, app_key), timeout=0)
# wait until the module has joined the network
while not lora.has_joined():
time.sleep(2.5)
print('Not joined yet...')
print('Network joined!')