Azure / azure-iot-sdk-c

A C99 SDK for connecting devices to Microsoft Azure IoT services
https://azure.github.io/azure-iot-sdk-c
Other
587 stars 739 forks source link

Issue with tls error when compiling on esp-idf 5 #2493

Closed dhammuabhi closed 1 year ago

dhammuabhi commented 1 year ago

https://github.com/espressif/esp-azure/issues/134

The issue is already posted in the above github issues section but did not get any response on it. Can anyone help me solving it.

esp5/esp-idf/esp-azure/port/src/tlsio_esp_tls.c:127:5: error: implicit declaration of function 'esp_tls_conn_delete'; did you mean 'esp_tls_conn_write'? [-Werror=implicit-function-declaration] 127 | esp_tls_conn_delete(tls_io_instance->esp_tls_handle); | ^~~~~~~~~~~~~~~~~~~ | esp_tls_conn_write

/esp5/esp-idf/esp-azure/port/src/tlsio_esp_tls.c: In function 'tlsio_esp_tls_create': /Users/preveen/esp5/esp-idf/esp-azure/port/src/tlsio_esp_tls.c:219:59: error: invalid application of 'sizeo' to incomplete type 'esp_tls_t' {aka 'struct esp_tls'} 219 | result->esp_tls_handle = calloc(1, sizeof(esp_tls_t)); | ^~~~~~~~~

Thanks

Rainbow-Cai commented 1 year ago

Hi There are no the "esp_tls_conn_delete()" functions in the v5.0 IDF SDK. Please refer to the “Function Deprecations And Recommended Alternatives” programming guide. image

ericwolz commented 1 year ago

Thanks, closing this issue. Please see the response on the espressif/esp-azure#134 repo