transferHttpConfigWithHttpInfo method
Transfers HTTP configuration
Transfers an HTTP configuration to the iot device
Note: This method returns the HTTP Response.
Parameters:
-
String token (required): IoT token
-
HttpConfig httpConfig (required): IoT configuration
Implementation
Future<Response> transferHttpConfigWithHttpInfo(
String token,
HttpConfig httpConfig,
) async {
// ignore: prefer_const_declarations
final path =
r'/iots/{token}/transferHttpConfig'.replaceAll('{token}', token);
// ignore: prefer_final_locals
Object? postBody = httpConfig;
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,
);
}