getDeviceInformation method

Future<GetDeviceInformationResponse> getDeviceInformation()

This operation gets basic device information from the device.

Implementation

Future<GetDeviceInformationResponse> getDeviceInformation() async {
  final envelope = await Soap.retrieveEnvlope(
      uri, onvif.secureRequest(SoapRequest.deviceInformation()));

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

  return envelope.body.deviceInformationResponse!;
}