mosquitto_connect_callback_set(m_pSubHandle, MosqMqttConnect); 1. 2. //描述:连接的回调函数 void MosqMqttConnect(struct mosquitto* mosq, void* userdata, int result) { CMosqSrv *pCMosqSrv = (CMosqSrv*)userdata; if (pCMosqSrv != nullptr) { DTRACE(L_DETAIL, DB_MQTT_BASE, "%s: Cli...