Drop the connection.
MCO_RET mco_iot_conn_disconnect(iot_connection_h iotc);
iotc
iot_connection_h).This function drops the connection.
MCO_S_OK
MCO_E_IOT_INVALID_HANDLE
iotc is invalid.
{
// Disconnect device by agentID:
mco_iot_connection_h conn = mco_iot_comm_find_conn(comm, agentID);
mco_iot_conn_disconnect(conn);
mco_iot_conn_release(conn);
...
}