setHostname method
This operation sets the hostname on a device.
Access Class: WRITE_SYSTEM
Implementation
Future<bool> setHostname(String name) async {
loggy.debug('setHostname');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(request: DeviceManagementRequest.setHostname(name)),
);
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return true;
}