addDeviceToGroup method

  1. @override
Future<void> addDeviceToGroup(
  1. int deviceAddress,
  2. int groupAddress
)
override

Implementation

@override
Future<void> addDeviceToGroup(int deviceAddress, int groupAddress) async {
  try {
    await methodChannel.invokeMethod<void>('addDeviceToGroup', {
      'deviceAddress': deviceAddress,
      'groupAddress': groupAddress,
    });
  } on PlatformException catch (e) {
    debugPrint('Failed to add device to group: ${e.message}');
    rethrow;
  }
}