Bluetooth - updating multiple notify characteristics at the same time
I am building a simple bluetooth server using a FiPy. The server has 1 service has a handful of characteristics. 2 of which are setup as notify.
I am trying to periodically update the 2 notify characteristics with new values by calling
.value(...)on the 2 characteristics.
When I connect with a test device, I only ever see 1 of the 2 characteristics update.
I can set a small timeout (~100ms) like this
Timer.Alarm(handler=lambda args: char.value(counter*2), ms=50, periodic=False)
and update them both, but not at the same time.
Are there limitations on how
ble.char.value(...)can be called?