-
Hi folks, i have a question regarding the timing of Lora MCCI. My UseCase:
Here is my main.cpp: Problem: In the readme of the Lib there is a hint regarding timing. Before i fire a Alarm-Signal i check if (!os_queryTimeCriticalJobs(ms2osticks(500))). But i don't understand why the controller doesn't return to WatchDog Mode.
Maybe you can give me a hint/tipp, that a can solve my problem. Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I have found a solution for my problem. Before i queue a new package now i clear the send-queue.
With this I ensure that the OS does not get confused/muddled. Thank you for the effort you make! |
Beta Was this translation helpful? Give feedback.
I have found a solution for my problem.
Before i queue a new package now i clear the send-queue.
os_clearCallback(&sendjob); //Clear the SendQueue
https://github.com/CK1-CK/Arduino-Pro-Mini-LoRa-Sensor-Node/blob/118f4fa760f954668719d641ad45afbbb99f5890/src/lorawan.cpp#L163
With this I ensure that the OS does not get confused/muddled.
Thank you for the effort you make!