esp_prov_ble_universal 0.1.0
esp_prov_ble_universal: ^0.1.0 copied to clipboard
Bluetooth LE transport for esp_prov_core built on universal_ble: scanning, endpoint discovery and serialised protocomm transactions on six platforms.
esp_prov_ble_universal #
Bluetooth LE transport for
esp_prov_core, built on
universal_ble.
UniversalBleScanner: scans by advertised name prefix (case-insensitive), one result per device, primary service UUID from the advertisement.UniversalBleTransport: connects, requests MTU 512 on Android, finds the provisioning service, maps endpoint names from the 0x2901 user description descriptors (falling back to the ESP-IDF UUID tableff4f-ff53), and runs each request as write-with-response then read. Requests are serialised; a dropped link surfaces asDeviceDisconnected.
const scanner = UniversalBleScanner();
final device = await scanner.scan(namePrefix: 'PROV_').first;
final transport = await device.connect();
final session = await EspSession.open(
transport,
credentials: const ProvCredentials.none(),
);
Most apps should use esp_prov
instead. Permissions and platform setup are described there; this package
does not request runtime permissions.