setAccessPointConfigWithHttpInfo method
Future<Response>
setAccessPointConfigWithHttpInfo(
- AccessPointConfig accessPointConfig, {
- String? uuidToken,
Edit the Access Point configuration
Edits the Access Point configuration. If the configuration fails, the entire proccess is rolled back and an error will be returned.
Note: This method returns the HTTP Response.
Parameters:
-
AccessPointConfig accessPointConfig (required):
-
String uuidToken: Used for remote connections to device
Implementation
Future<Response> setAccessPointConfigWithHttpInfo(
AccessPointConfig accessPointConfig, {
String? uuidToken,
}) async {
// ignore: prefer_const_declarations
final path = uuidToken != null
? '${LbSetupEnvironment.getApiEndpoint(iotUuid: uuidToken)}/network/accesspoint/config'
: '/network/accesspoint/config';
// ignore: prefer_final_locals
Object? postBody = accessPointConfig;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}