This is a summary of what I am trying to do:
Code: Select all
esp_http_client_handle_t httpClient;
clientConfig.url = httpServerFirmwareUrl;
clientConfig.host = HttpServerIpString;
clientConfig.port = httpServerPortNumber;
clientConfig.method = HTTP_METHOD_GET;
clientConfig.transport_type = HTTP_TRANSPORT_OVER_TCP;
clientConfig.buffer_size = MAX_FIRMWARE_BLOCK_SIZE;
clientConfig.event_handler = Http_OtaClientEventHandler;
httpClient = NULL;
httpClient = esp_http_client_init ( &clientConfig );
The purpose is to try and establish an HTTP ( not HTTPS) connection to transfer data.
Any one have any suggestions as to what I am doing wrong?