mco_iot_conn_disconnect

Drop the connection.

For an overview see page ARF Applications in C

Prototype

 
    MCO_RET mco_iot_conn_disconnect(iot_connection_h iotc);
 

Arguments

iotc The connection handle (iot_connection_h)

Description

This function drops the connection.

Return Codes

MCO_S_OK Connection successfully dropped
MCO_E_IOT_INVALID_HANDLE The connection handle iotc is invalid

Example

     
    {
        // 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);
        ...
    }
     

Files

Header file:
mcoiot.h
Source file:
mcoiotcomm.c
Library:
libmcoiotcomm.a