Skip to content

Commit 5e9b197

Browse files
authored
Update SimpleWebSocket.ino
add example showing passing a path in the begin() statement
1 parent 1751e10 commit 5e9b197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: examples/SimpleWebSocket/SimpleWebSocket.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void setup() {
4949

5050
void loop() {
5151
Serial.println("starting WebSocket client");
52-
client.begin();
52+
client.begin(); // to read from a specific path, pass the path name here. For example, `client.begin("/signalk/v1/stream")`
5353

5454
while (client.connected()) {
5555
Serial.print("Sending hello ");

0 commit comments

Comments
 (0)