gotoPreset method
Operation to go to a saved preset position for the Preset in the selected profile. The operation is supported if there is support for at least one PTZ preset by the Preset.
ACCESS CLASS: ACTUATE
Implementation
Future<bool> gotoPreset(
String profileToken, {
required String presetToken,
PtzSpeed? speed,
}) async {
loggy.debug('gotoPreset');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(
request: PtzRequest.gotoPreset(
profileToken,
presetToken: presetToken,
speed: speed,
),
));
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return true;
}