Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket client library secure communication initialization error (IDFGH-1642) #3891

Closed
fordosg opened this issue Aug 7, 2019 · 0 comments

Comments

@fordosg
Copy link

fordosg commented Aug 7, 2019

Environment

  • IDF version: v4.0-dev-1381-g6fe853a2c

Problem Description

Hi all,

The new Websockets library cannot be initialized for secure communication, if I not using the uri scheme. (wss).

Initialization code:

esp_websocket_client_config_t ws_conf = {
		.host = URL,
		.port = PORT,
		.path = path,
		.buffer_size = 512,
		.transport = WEBSOCKET_TRANSPORT_OVER_SSL,
};

Erroneous code:

Current code (components/esp_websocket_client/esp_websocket_client.c; line 262):

    if (config->transport == WEBSOCKET_TRANSPORT_OVER_TCP) {

Working code:

    if (config->transport == WEBSOCKET_TRANSPORT_OVER_SSL) {

Regards,

@github-actions github-actions bot changed the title Websocket client library secure communication initialization error Websocket client library secure communication initialization error (IDFGH-1642) Aug 7, 2019
@igrr igrr closed this as completed in adee25d Oct 13, 2019
espressif-bot pushed a commit that referenced this issue Nov 19, 2019
…ed as host, port, transport rather then uri

closes #3891
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this issue Apr 8, 2022
euripedesrocha pushed a commit to euripedesrocha/esp-protocols that referenced this issue Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant