getNtp method

This operation gets the NTP settings from a device. If the device supports NTP, it shall be possible to get the NTP server settings through the getNtp command.

Implementation

Future<NtpInformation> getNtp() async {
  final envelope =
      await Soap.retrieveEnvlope(uri, onvif.secureRequest(SoapRequest.ntp()));

  if (envelope.body.ntpResponse == null) throw Exception();

  return envelope.body.ntpResponse!.ntpInformation;
}