Skip to content

Commit

Permalink
Fix #96: call LMIC_setSession with correct NetID value
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Apr 13, 2019
1 parent b915622 commit 16fe42e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/machineq_base_netbegin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ bool Arduino_LoRaWAN_machineQ_base::NetBegin()

if (this->GetAbpProvisioningInfo(&abpInfo))
{
LMIC_setSession(/* port */ 1,
LMIC_setSession(
abpInfo.NetID,
abpInfo.DevAddr,
abpInfo.NwkSKey,
abpInfo.AppSKey
Expand Down
3 changes: 2 additions & 1 deletion src/lib/ttn_base_netbegin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ bool Arduino_LoRaWAN_ttn_base::NetBegin()

if (this->GetAbpProvisioningInfo(&abpInfo))
{
LMIC_setSession(/* port */ 1,
LMIC_setSession(
abpInfo.NetID,
abpInfo.DevAddr,
abpInfo.NwkSKey,
abpInfo.AppSKey
Expand Down

0 comments on commit 16fe42e

Please sign in to comment.