Skip to content

Websockets implementation for Spark Core, ported from Arduino WebSocketClient

License

Notifications You must be signed in to change notification settings

wyattwww/spark_websockets2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spark_websockets

Websockets implementation for Spark Core, ported from Arduino WebSocketClient

How to use :

include websocketclient.h

WebSocketClient client;
char server[] = "echo.websocket.org";

void onMessage(WebSocketClient client, char* message) {
  Serial.print("Received: ");
  Serial.println(message);
}

void setup() {
  Serial.begin(9600);
  client.connect(server);
  client.onMessage(onMessage);
  client.send("Hello World!");
}

void loop() {
  client.monitor();
}

About

Websockets implementation for Spark Core, ported from Arduino WebSocketClient

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 87.7%
  • C 12.3%