controlCommand static method
发送控制
Implementation
//参数
// {
// "gateway_id": "",
// "did": "",
// "command": {
//
// },
// "control_params": {}
// }
//返回数据
// {
// "status": "",
// "msg": "",
// "data": {
// "pwr": 1,
// "brightness": 100,
// "lightrate": 50
// }
// }
///
static Future<String?> controlCommand(String command) async {
final String? result = await _channel.invokeMethod('control_command'
,<String,dynamic>{'data':command});
return result;
}