esp_bluetooth_provisioning 0.0.2 esp_bluetooth_provisioning: ^0.0.2 copied to clipboard
A new Flutter plugin.
snowm_scanner #
A cross platform package for flutter to provision device.
Getting Started #
Installation #
dependencies:
esp_bluetooth_provisioning:
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" />
Also, use io.flutter.embedding.android.FlutterActivity
as your FlutterActivity
Bluetooth Permission #
Ask permission
EspBleProvisioning().requestPermission();
Bluetooth Adapter State #
Scanning #
Start Scanning on foreground.
EspBleProvisioning().scanBluetoothDevice()
Connecting to device #
EspBleProvisioning().connectToBluetoothDevice()
Provisiong device #
EspBleProvisioning().startProvisioning()