Skip to content
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
Open
@innoagg

Description

@innoagg

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

  1. 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.
  2. Advertisement intervals are hard coded.
  3. No way to configure a scan response.

Peripheral Connections

  1. 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.
  2. 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.
  3. Bonding or encrypting the BLE connection does not appear to be supported.

Metadata

Metadata

Assignees

Labels

BLEIssues related to BLEenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions