ruuvi / ruuvi.gateway_esp.c

Ruuvi Gateway ESP32 code
BSD 3-Clause "New" or "Revised" License
24 stars 15 forks source link

Some esp-tls errors are decoded incorrectly after implementing TLS v1.3 support #984

Closed TheSomeMan closed 4 months ago

TheSomeMan commented 4 months ago
E (1468095) MQTT_CLIENT: mqtt_message_receive: transport_read() error: errno=119
E (1468097) MQTT_CLIENT: [mqtt_task] esp_mqtt_client_dispatch_transport_error: esp_tls_last_esp_err=32776 (ERROR 0x8008(32776))
E (1468105) MQTT: [mqtt_task/23] ./main/mqtt.c:320 {mqtt_get_error_code}: MQTT_EVENT_ERROR (MQTT_ERROR_TYPE_TCP_TRANSPORT): 32776 (ERROR 0x8008(32776))
TheSomeMan commented 4 months ago

For testing, you need to configure the gateway for MQTT on AWS and enable retained messages. In UI you should see the error decoded message "ESP_ERR_ESP_TLS_TCP_CLOSED_FIN."

markoaamunkajo commented 4 months ago

@ojousima related to AWS, could you please help testing this?