setLanConfig method

Future<void> setLanConfig(
  1. LanConfig lanConfig, {
  2. String? uuidToken,
})

Edit the LAN configuration

Edits the LAN configuration. If the configuration fails, the entire proccess is rolled back and an error will be returned.

Parameters:

  • LanConfig lanConfig (required):

  • String uuidToken: Used for remote connections to device

Implementation

Future<void> setLanConfig(
  LanConfig lanConfig, {
  String? uuidToken,
}) async {
  final response = await setLanConfigWithHttpInfo(
    lanConfig,
    uuidToken: uuidToken,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}