write method
Implementation
@override
Future<Map<dynamic, dynamic>?> write(String deviceId, String service,
String characteristic, String value, int timeout) async {
return _methodChannel.invokeMethod<Map<dynamic, dynamic>?>('write', {
'deviceId': deviceId,
'service': service,
'characteristic': characteristic,
'value': value,
'timeout': timeout,
});
}