ESP-IDF MQTT example

alexey_powers
Posts: 7
Joined: Fri May 03, 2019 7:54 am

ESP-IDF MQTT example

Postby alexey_powers » Tue Apr 14, 2020 10:13 am

So Im trying to launch an example of MQTT client (mqtt/tcp example). And constantly getting an error :
MQTT_CLIENT: Error transport connect. Is there something Im doing wrong?

Code: Select all

I (10875) wifi: AP's beacon interval = 102400 us, DTIM period = 1
I (11855) tcpip_adapter: sta ip: 192.168.198.21, mask: 255.255.255.0, gw: 192.168.198.1
I (12355) example_connect: Connected to HomeNetwork
I (12355) example_connect: IPv4 address: 192.168.198.21
I (12355) example_connect: IPv6 address: fe80:0000:0000:0000:32ae:a4ff:fe0a:80cc
I (12365) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
D (12375) MQTT_CLIENT: MQTT client_id=ESP32_0a80CC
D (12375) MQTT_CLIENT: Core selection disabled
D (12385) MQTT_EXAMPLE: Event dispatched from event loop base=MQTT_EVENTS, event_id=7
I (12385) MQTT_EXAMPLE: Other event id:7
E (30645) MQTT_CLIENT: Error transport connect
D (30645) MQTT_EXAMPLE: Event dispatched from event loop base=MQTT_EVENTS, event_id=0
I (30645) MQTT_EXAMPLE: MQTT_EVENT_ERROR
D (30645) MQTT_CLIENT: Reconnect after 10000 ms
D (30655) MQTT_EXAMPLE: Event dispatched from event loop base=MQTT_EVENTS, event_id=2
I (30665) MQTT_EXAMPLE: MQTT_EVENT_DISCONNECTED
D (30665) MQTT_CLIENT: Reconnecting...
D (30665) MQTT_EXAMPLE: Event dispatched from event loop base=MQTT_EVENTS, event_id=7
I (30675) MQTT_EXAMPLE: Other event id:7
E (49185) MQTT_CLIENT: Error transport connect

alexey_powers
Posts: 7
Joined: Fri May 03, 2019 7:54 am

Re: ESP-IDF MQTT example

Postby alexey_powers » Fri Apr 17, 2020 9:36 pm

manage to find a problem. My MQTT-server host had a firewall, so connection was rejected...

Who is online

Users browsing this forum: Google [Bot] and 103 guests