Closed lthiery closed 4 years ago
Unfortunately, the introduction of the NwkKey in LW1.1 created some naming confusion. The NwkKey is actually what was used to be the AppKey in LW1.0.x and the newly introducted key that is only used for encryption of non-port-0 payloads is now called AppKey in LW1.1. Yeah I know.
In BasicMAC, we use the newer terminology, hence the 1.0 AppKey is already called NwkKey.
Ah got it. Thanks for the explanation!
https://github.com/lorabasics/basicmac/blob/master/lmic/lce.c#L73
Does LoRaWAN pre-1.1 have a notion of NwkKey? Perhaps that code should be: