I assume the function setNewDataSem allows me to pass a handle to a semaphore that will get processed each time a data packet arrives.
I’d like to use this mechanism instead of polling to see if a new message has arrived. Is this semaphore given (semGive) or flushed (semFlush) each time?
It does not seem to work no matter how I use it.
Thanks