Alex Moon
Alex Moon
Pull request #523 fixes this problem.
Right now, the way the ALSA worker threads in cpal work is as follows: * `pollfd()` the file descriptor associated with the stream, until it is ready for reading/writing *...
We've just added a Builder pattern API which you can use instead of the macros to get full control including conditional compilation. You can look at the new `ble_dis_bas_peripheral_builder` example...
The ServiceBuilder is an effective workaround for this issue.
@Dirbaio is there a reason not to use embassy-sync's signal instead of re-implementing it here? It looks to me like the only difference is interrupt::free here vs critical-section in embassy-sync.
It doesn't look like notifications are currently supported. You would need to add handling for the BLE_GATTC_EVT_HVX event to gatt_client.rs and add support for writing to the Client Configuration Characteristic...
The new Builder API allows you to build a service with authorized reads and writes, but the gatt_server does not currently dispatch the events. I have an implementation for that...
Support for the events required for deferrred reads and writes is implemented in #137. Feel free to have a look and let me know if there are any issues for...
Interesting. Thanks for trying it out. It should be the same as the Nordic SDK; that's just going to be how the softdevice works even if it's a bit wierd....