Skip to content

Commit bb100e6

Browse files
authored
Update socket.ino
1 parent b7ef532 commit bb100e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

socket.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ void loop() {
102102

103103
IPAddress clientIP = client.remoteIP();
104104
Particle.publish("Remote IP", String(clientIP), 60, PRIVATE);
105-
client.write(byte(129));
106-
client.write(byte(1));
107-
client.write("A");
105+
client.write(byte(129)); // tells websockey using Frames
106+
client.write(byte(1)); // sending only 1 byte. works up to 125 bytes
107+
client.write("A"); // sending the one byte. any Ascii code !
108108
if (myUsbSerialDebugOn){
109109
Serial.print("A");
110110
}

0 commit comments

Comments
 (0)