espressif / esp-azure

SDK to connect ESP8266 and ESP32 to Microsoft Azure IoT services
176 stars 92 forks source link

Help for implementing Azure WebSocket support (CA-67) #90

Open MartinTJDK opened 4 years ago

MartinTJDK commented 4 years ago

Hi Espressif, I know, that an issue regarding WebSocket is active, and has been for a long time. I Espressif able to help regarding this "feature" request? Thanks

MartinTJDK commented 4 years ago

Based on ideas from https://github.com/espressif/esp-azure/issues/65 I have managed to get MQTT over WebSocket to work. The issue was related to missing SSL negotiation [mbedtls_ssl_conf_renegotiation(&tls->conf, MBEDTLS_SSL_RENEGOTIATION_ENABLED); in file /components/esp-tls/esp_tls_mbedtls.c]

shahpiyushv commented 4 years ago

@MartinTJDK , the support for enabling this automatically when CONFIG_MBEDTLS_SSL_RENEGOTIATION=y will soon be available in ESP_IDF. Meanwhile, we have also updated azure-iot-c-sdk to the latest (pre)release LTS_06_2020_Ref01.

shahpiyushv commented 4 years ago

@MartinTJDK , the esp-tls fix for re-negotiation is now available on esp-idf master and release/v4.0 branches.