ESP32_LoRaWAN icon indicating copy to clipboard operation
ESP32_LoRaWAN copied to clipboard

Piggibacked commands are not sent

Open shernando1 opened this issue 5 years ago • 1 comments

I have been checking the ADR and I see that the ADRLinkADRAns MAC is not sent. I see that the "MacCommandsInNextTx" is set when the frame with the ADRLinkReq is received but it is reset when the module sends the following uplink frame. As far as I understand, this is due to that variable (and many others) are not keeped when the ESP32 entres in DeepSleep (LoRa.DeviceSleep(CLASS, DebugLevel); call in the examples).

I have tested changing the declaration of the variables to RTC_DATA_ATTR in LoRaMac.c and now it does work. I do not know if this is the solution or I am doing something wrong.

shernando1 avatar Jan 31 '20 10:01 shernando1

Please try the newest update.

Heltec-Aaron-Lee avatar Feb 10 '20 11:02 Heltec-Aaron-Lee