I'm trying to connect to a thingsboard broker through MQTT over SSL, modifying a bit the example code I've goy the next output:
Code: Select all
I (4136) example_connect: Got IPv4 event: Interface "example_connect: sta" address: 192.168.86.22
I (4146) example_connect: Connected to example_connect: sta
I (4146) example_connect: - IPv4 address: 192.168.86.22
I (4156) example_connect: - IPv6 address: fe80:0000:0000:0000:4e11:aeff:feb6:d85c, type: ESP_IP6_ADDR_IS_LINK_LOCAL
I (4166) MQTTS_EXAMPLE: [APP] Free memory: 231460 bytes
I (4176) MQTTS_EXAMPLE: Other event id:7
E (4596) esp-tls: Failed to connnect to host (errno 104)
E (4596) esp-tls: Failed to open new connection
E (4606) TRANS_SSL: Failed to open a new connection
E (4606) MQTT_CLIENT: Error transport connect
I (4616) MQTTS_EXAMPLE: MQTT_EVENT_ERROR
I (4616) MQTTS_EXAMPLE: Last error code reported from esp-tls: 0x8004
I (4626) MQTTS_EXAMPLE: Last tls stack error number: 0x0
I (4626) MQTTS_EXAMPLE: MQTT_EVENT_DISCONNECTED
I suspect of the certificate, but not at all sure since the certificate was downloaded from the thingsboard demo broker page.
Thanks.