Return the connection agent_id.
mco_iot_agent_id_t mco_iot_conn_get_agent_id(const iot_connection_h iotc);
iotc
iot_connection_h).This function returns the remote node agent_id.
mco_iot_agent_id_t
agent_id.
// onConnect callback
int iot_on_connect(mco_iot_connection_h iotc, void *context)
{
mco_iot_agent_id_t agent_id = mco_iot_conn_get_agent_id(iotc);
...
return IOT_CALLBACK_OK;
}