This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
Bluetooth API Features #176
Open
Description
Pycom MicroPython 1.18.0 [v1.8.6-849-046b350] on 2018-06-01; GPy with ESP32
The Bluetooth implementation is missing some critical features that make peripheral implementations difficult. The items listed below are not all of them, but cover the most important at least from my perspective in order of importance.
Advertising
- No way to set advertisement flags with set_advertisement. For example, the flags ESP_BLE_ADV_FLAG_GEN_DISC | ESP_BLE_ADV_FLAG_BREDR_NOT_SPT are hard coded.
- Advertisement intervals are hard coded.
- No way to configure a scan response.
Peripheral Connections
- The callback for CLIENT_CONNECTED / CLIENT_DISCONNECTED events is missing any information about the client such as Mac address or some kind of connection handle. Connection management is impossible without. All callback should identify which client it is for.
- Method to disconnect a particular connected client. There appears to be a method disconnect_client but it is not clear which connection is terminates if there are multiple active.
- Bonding or encrypting the BLE connection does not appear to be supported.