UC GEE
DIIDevHeads IoT Integration Server
•Created by Marvee Amasi on 6/24/2024 in #middleware-and-os
How can I debug this communication issue to ensure ControlTask always reads the latest data?
If you must use a global variable try a semaphore to protect the shared variable during access. The sensor task acquires the semaphore before updating the variable , and the control task acquires it before reading the variable all these are so you can make only one task access the variable at a time. @Marvee Amasi
5 replies