transferModbustcpConfigWithHttpInfo method

Future<Response> transferModbustcpConfigWithHttpInfo(
  1. String token,
  2. ModbusTcpConfig modbusTcpConfig
)

Transfers Modbus TCP configuration

Transfers an Modbus TCP configuration to the iot device

Note: This method returns the HTTP Response.

Parameters:

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,
  );
}