setNetworkProtocols method
This operation configures one or more defined network protocols supported by the device (HTTP, HTTPS, RTSP).
Access Class: WRITE_SYSTEM
Implementation
Future<bool> setNetworkProtocols(
List<NetworkProtocol> networkProtocols,
) async {
loggy.debug('setNetworkProtocols');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(
request: DeviceManagementRequest.setNetworkProtocols(networkProtocols),
),
);
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return true;
}