setHomePosition method

Future<bool> setHomePosition(
  1. String profileToken
)

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.

Implementation

Future<bool> setHomePosition(String profileToken) async {
  loggy.debug('setHomePosition');

  final envelope = await transport.sendRequest(
      uri,
      transport
          .securedEnvelope(soap.PtzRequest.setHomePosition(profileToken)));

  return envelope.body.response?.containsKey('SetHomePositionResponse') ??
      false;
}