xcGetDeviceState method
单个获取设备在线状态(同步接口), 比如低功耗设备
deviceId 设备序列号
stateType 状态类型(上层定义) eg. EFunDevStateType_IDR = 8, //门铃状态
Implementation
Future<int> xcGetDeviceState(
{required String deviceId, required int stateType}) async {
final result = await _api.xcGetDeviceState(deviceId, stateType);
return result.param1;
}