0 purchases
stratosfy esp ble provisioning
esp_bluetooth_provisioning #
A cross platform package for flutter to provision device.
Getting Started #
Installation #
dependencies:
esp_bluetooth_provisioning:
copied to clipboard
Android Configuration
Make use you have flutter_embedding v2 enabled. Add the following code on the manifest file inside <application> tag to enable embedding.
<meta-data
android:name="flutterEmbedding"
android:value="2" />
copied to clipboard
Also, use io.flutter.embedding.android.FlutterActivity as your FlutterActivity
Bluetooth Permission #
Ask permission
EspBleProvisioning().requestPermission();
copied to clipboard
Bluetooth Adapter State #
Scanning #
Start Scanning on foreground.
EspBleProvisioning().scanBluetoothDevice()
copied to clipboard
Connecting to device #
EspBleProvisioning().connectToBluetoothDevice()
copied to clipboard
Provisiong device #
EspBleProvisioning().startProvisioning()
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.