queryCommand static method

Future<String?> queryCommand(
  1. String command
)

发送查询命令

Implementation

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