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