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 {
loggy.debug('getNtp');
final envelope = await transport.sendRequest(
uri, transport.securedEnvelope(soap.DeviceManagementRequest.ntp()));
if (envelope.body.hasFault) {
throw Exception(envelope.body.fault.toString());
}
return GetNtpResponse.fromJson(envelope.body.response!).ntpInformation;
}