lorawan: Update data type of dev_nonce in lorawan_join_otaa struct

Make the dev_nonce size match the LoRaWAN specification, which is 2 bytes.

Signed-off-by: Lucas Dietrich <lucas.dietrich@socomec.com>
This commit is contained in:
Lucas Dietrich 2023-09-22 13:37:02 +02:00 committed by Carles Cufí
commit 8b9e064823

View file

@ -107,7 +107,7 @@ struct lorawan_join_otaa {
* increasing for each OTAA join with the same EUI. The DevNonce * increasing for each OTAA join with the same EUI. The DevNonce
* should be stored in non-volatile memory by the application. * should be stored in non-volatile memory by the application.
*/ */
uint32_t dev_nonce; uint16_t dev_nonce;
}; };
/** /**