pairBleDevice method
Future<Map<String, dynamic> ?>
pairBleDevice({
- required String uuid,
- required String productId,
- required int homeId,
- int? deviceType,
- String? address,
- int? flag,
- int? timeout,
override
Activate (pair) a pure-BLE device with the cloud.
uuid,productId,homeId,deviceType,address details is passed on to native
pairBleDevice function on native is invoked
Returns a JSON map
Implementation
@override
Future<Map<String, dynamic>?> pairBleDevice({
required String uuid,
required String productId,
required int homeId,
int? deviceType,
String? address,
int? flag,
int? timeout,
}) async {
final Map<dynamic, dynamic> result = await methodChannel
.invokeMethod('pairBleDevice', <String, dynamic>{
'uuid': uuid,
'productId': productId,
'homeId': homeId,
'deviceType': deviceType,
'address': address,
'flag': flag,
'timeout': timeout,
});
return Map<String, dynamic>.from(result);
}