Hello,
I wanted to double check with the community about the safety of logging with Log.info() on a BLE. onDataReceived() handler.
Some references from the past, like this one, indicate trouble:
But docs mention Log.info():
Thanks
Hello,
I wanted to double check with the community about the safety of logging with Log.info() on a BLE. onDataReceived() handler.
Some references from the past, like this one, indicate trouble:
But docs mention Log.info():
Thanks
Log.info should be safe from the BLE callback. It is thread safe, and the BLE callback is run from a thread. Also software timers, worker threads. Also things that dispatch out of the application loop are safe like function handlers, calculated variable handers, and serial data receive handlers are all safe.
Log.info is not safe from an ISR, which includes attachInterrupt handlers, I2C slave mode receive handlers, SPI DMA completion handlers, system button handlers.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.