gallex wrote: ↑Mon Dec 18, 2023 4:30 am
在不能连接时,我把最详细的日志打印出来了。
D (833755) esp-tls: [sock=54] Connecting to server. HOST: 192.168.1.100, Port: 1883
E (843775) esp-tls: [sock=54] select() timeout
E (843775) transport_base: Failed to open a new connection: 32774
E (843775) mqtt_client: Error transport connect
D (843775) event: running post MQTT_EVENTS:0 with handler 0x400d958c and context 0x3ffcfc48 on loop 0x3ffc3fb8
0x400d958c: mqtt_event_handler(void*, char const*, long, void*) at /home/lg/esp/ambox/build/../main/mqtt.cpp:114
D (843785) mqtt_event_handler: Event dispatched from event loop base=MQTT_EVENTS, event_id=0
I (843795) mqtt_event_handler: MQTT_EVENT_ERROR
E (843805) log_error_if_nonzero: Last error reported from esp-tls: 0x8006
I (843805) mqtt_event_handler: Last errno string (Success)
D (843815) event: running post MQTT_EVENTS:2 with handler 0x400d958c and context 0x3ffcfc48 on loop 0x3ffc3fb8
0x400d958c: mqtt_event_handler(void*, char const*, long, void*) at /home/lg/esp/ambox/build/../main/mqtt.cpp:114
D (843825) mqtt_event_handler: Event dispatched from event loop base=MQTT_EVENTS, event_id=2
I (843835) mqtt_event_handler: MQTT_EVENT_DISCONNECTED
D (853835) event: running post MQTT_EVENTS:7 with handler 0x400d958c and context 0x3ffcfc48 on loop 0x3ffc3fb8
0x400d958c: mqtt_event_handler(void*, char const*, long, void*) at /home/lg/esp/ambox/build/../main/mqtt.cpp:114
D (853835) mqtt_event_handler: Event dispatched from event loop base=MQTT_EVENTS, event_id=7
I (853835) mqtt_event_handler: Other event id:7
D (853845) esp-tls: host:192.168.1.100: strlen 13
D (853845) esp-tls: [sock=54] Resolved IPv4 address: 192.168.1.100
D (853855) esp-tls: [sock=54] Connecting to server. HOST: 192.168.1.100, Port: 1883