Skip to content

Commit ff309a0

Browse files
committed
Fix to match WebSocketsClient SSL API
1 parent 6dd97ac commit ff309a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SinricProWebsocket.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ void websocketListener::begin(String server, String socketAuthToken, String devi
121121
webSocket.enableHeartbeat(WEBSOCKET_PING_INTERVAL, WEBSOCKET_PING_TIMEOUT, WEBSOCKET_RETRY_COUNT);
122122
#ifdef WEBSOCKET_SSL
123123
// To get this working, WebSocketsClient.h needs to be fixed. See https://github.com/Links2004/arduinoWebSockets/issues/492
124-
webSocket.beginSSL(server, SINRICPRO_SERVER_SSL_PORT, "/");
124+
webSocket.beginSSL(server.c_str(), SINRICPRO_SERVER_SSL_PORT, "/");
125125
#else
126-
webSocket.begin(server, SINRICPRO_SERVER_PORT, "/"); // server address, port and URL
126+
webSocket.begin(server.c_str(), SINRICPRO_SERVER_PORT, "/"); // server address, port and URL
127127
#endif
128128
}
129129

0 commit comments

Comments
 (0)