Page 1 of 1

Is it possible to insert a task while BLE is broadcasting

Posted: Tue Nov 16, 2021 7:47 am
by pluviofeel
What I want do is print the value from the sensor while BLE broadcast.
I know that in order to BLE broadcast I need use

Code: Select all

BLE.gap_advertise(interval_us, adv_data=None, *, resp_data=None, connectable=True) 
and using uasyncio to run task at the same time(Concurrent computing).
The problem is it seems like that default BLE.gap_advertise broadcast automatically and cannot set the

Code: Select all

await asyncio.sleep
into it.
So I want to know if it is possible to insert a task in the interval of BLE.gap_advertise.

Please any help or suggestion is highly appreciated.

Thanks a lot,

Pluvio.