gotoHomePosition method Null safety
Operation to move the PTZ device to it's "home" position. The operation is supported if the HomeSupported element in the PTZNode is true.
Implementation
Future<bool> gotoHomePosition(String profileToken, [PtzSpeed? speed]) async {
loggy.debug('gotoHomePosition');
final envelope = await Soap.retrieveEnvelope(uri,
onvif.secureRequest(SoapRequest.gotoHomePosition(profileToken, speed)));
if (envelope.body.gotoHomePositionResponse == null) {
throw Exception();
}
return true;
}