Drop the connection.
MCO_RET mco_iot_conn_disconnect(iot_connection_h iotc);
| iotc | The connection handle (iot_connection_h) |
This function drops the connection.
| MCO_S_OK | Connection successfully dropped |
| MCO_E_IOT_INVALID_HANDLE | The connection 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);
...
}