File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
components/esp_websocket_client Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -955,7 +955,9 @@ static void esp_websocket_client_task(void *pv)
955
955
client -> run = true;
956
956
957
957
//get transport by scheme
958
- client -> transport = esp_transport_list_get_transport (client -> transport_list , client -> config -> scheme );
958
+ if (client -> transport == NULL && client -> config -> ext_transport == NULL ) {
959
+ client -> transport = esp_transport_list_get_transport (client -> transport_list , client -> config -> scheme );
960
+ }
959
961
960
962
if (client -> transport == NULL ) {
961
963
ESP_LOGE (TAG , "There are no transports valid, stop websocket client" );
@@ -1135,6 +1137,7 @@ esp_err_t esp_websocket_client_start(esp_websocket_client_handle_t client)
1135
1137
return ESP_FAIL ;
1136
1138
}
1137
1139
xEventGroupClearBits (client -> status_bits , STOPPED_BIT | CLOSE_FRAME_SENT_BIT );
1140
+ ESP_LOGI (TAG , "Started" );
1138
1141
return ESP_OK ;
1139
1142
}
1140
1143
You can’t perform that action at this time.
0 commit comments