toc Connect LoRa OTAA Pybytes > Pybytes library API > Connect loRa OTAA

Connect LoRa OTAA

Initialize LoRa OTAA connection.

Method

pybytes.connect_lora_otaa(timeout, nanogateway)

Parameters

name Description is Required Default value
timeout Connection timeout Yes -
nanogateway Enable nanogateway Yes -

Example

pybytes.connect_lora_otaa(timeout=15, nanogateway=False)

Success Response

>> Trying to join LoRa.OTAA for 15 seconds...
>>  Setting up LoRa socket...
>>  Connected using LoRa

 

Previous Next