pairBleDevice method

  1. @override
Future<Map<String, dynamic>?> pairBleDevice({
  1. required String uuid,
  2. required String productId,
  3. required int homeId,
  4. int? deviceType,
  5. String? address,
  6. int? flag,
  7. 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);
}