Is it possible to insert a task while BLE is broadcasting

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
pluviofeel
Posts: 3
Joined: Fri Feb 12, 2021 8:32 am

Is it possible to insert a task while BLE is broadcasting

Post by pluviofeel » Tue Nov 16, 2021 7:47 am

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.

Post Reply