Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

DevNonce issue #179

@piepak

Description

@piepak

Hi there,

I'm using ESP32 boards + a LoRa modules. Sometimes when my devices wake up and reach the Network Server using the OTAA method, my console throw that type of error : "devnonce has already been used". I think there might be two ways this could be solved.

  1. Modifying the static void Generate_DevNonce(unsigned char *DevNonce) in LoRaMAC.ccp file and add a few lines checking wether the code is compiled for an ESP32 to use it's embedded real number generator instead of the basic random() function from arduino library.

  2. Add to the LoRaWANClass class a method that would allow us to setup up DevNonce for each joinRequest.

I hope my contribution will help improving this library.

Cheers.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions