Mair / esp32-course

Course on the ESP32 IDF
https://learnesp32.com
282 stars 122 forks source link

v5.1.1 Change esp32-course/_14_Rest_Client/v5.x/_1_get_data /main/ ***FIX*** #261

Open Beauxrel opened 1 year ago

Beauxrel commented 1 year ago

Could not build without changing status and content length to int.

{ ESP_LOGI(TAG, "HTTP GET status = %d, content_length = %d", esp_http_client_get_status_code(client), esp_http_client_get_content_length(client)); }

{ ESP_LOGI(TAG, "HTTP GET status = %d, content_length = %d", (int)esp_http_client_get_status_code(client), (int)esp_http_client_get_content_length(client)); }