Skip to content

Commit cdc1c5d

Browse files
committed
Fix client WSS
1 parent 997b203 commit cdc1c5d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/websocket/websocket_client.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ int main(int argc, char *argv[])
149149
printf("Connecting to %s:%d%s\n", mqttCtx.host, mqttCtx.port,
150150
mqttCtx.use_tls ? " (TLS)" : "");
151151
do {
152+
/* Do not use socket TLS setup as this gets handled in the LWS driver */
152153
rc = MqttClient_NetConnect(&client, mqttCtx.host, mqttCtx.port, 5000,
153-
mqttCtx.use_tls, NULL);
154+
0, NULL);
154155
} while (rc == MQTT_CODE_CONTINUE);
155156
if (rc != MQTT_CODE_SUCCESS) {
156157
printf("MqttClient_NetConnect failed: %d\n", rc);

0 commit comments

Comments
 (0)