xcDevSetPtzTourPoint method
把预置点设置为巡航点
deviceId设备id
channel 通道
presetPoint 预置点id
tourIndex 巡航点id. 从 0 开始,app自定义
add 增加 或 删除
Implementation
Future<int> xcDevSetPtzTourPoint(
{required String deviceId,
required int channel,
required int presetPoint,
required int tourIndex,
int step = 1,
bool add = true}) async {
final result = await _api.xcDevSetPtzTourPoint(
deviceId, channel, presetPoint, step, tourIndex, add);
if (kDebugMode) {
XCloudResponse.fromOriginResponse(result);
}
return result.param1;
}