setHomePosition method
Operation to save current position as the home position. The SetHomePosition command returns with a failure if the “home” position is fixed and cannot be overwritten. If the SetHomePosition is successful, it is possible to recall the Home Position with the GotoHomePosition command.
ACCESS CLASS: ACTUATE
Implementation
Future<bool> setHomePosition(String profileToken) async {
loggy.debug('setHomePosition');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(request: PtzRequest.setHomePosition(profileToken)),
);
return responseEnvelope.body.response?.containsKey(
'SetHomePositionResponse',
) ??
false;
}