Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gilmaimon committed Feb 19, 2019
1 parent c9f24c7 commit 86fcbfa
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const char* websockets_server_host = "www.myserver.com"; //Enter server adress
const uint16_t websockets_server_port = 8080; // Enter server port

using namespace websockets;
using namespace websockets::network;

void onMessageCallback(WebsocketsMessage message) {
Serial.print("Got Message: ");
Expand All @@ -45,7 +44,7 @@ void onEventsCallback(WebsocketsEvent event, WSString data) {
}
}

WebsocketsClient client(new Esp8266TcpClient);
WebsocketsClient client;
void setup() {
Serial.begin(115200);
// Connect to wifi
Expand Down Expand Up @@ -74,20 +73,12 @@ void loop() {
client.poll();
}
```

***Note**: for esp32, replace:*
```c++
new Esp8266TcpClient
```
*with*
```c++
new Esp32cpClient
```

***Note:** for ESP32 you only need to change to code that connects to WiFi (the #include), everything else stays the same.*
## Contributing
Contributions are welcomed! Please open issues if you have troubles while using the library or any queshtions on how to get started. Pull requests are welcomed, please open an issue first.
## Change Log
- **14/02/2019 (v0.1.1)** - Initial commits and support for ESP32 and ESP8266 Websocket Clients.
- **16/02/2019 (v0.1.2)** - Added support for events (Pings, Pongs) and more internal improvements (events handling according to [RFC-6455](https://tools.ietf.org/html/rfc6455))
- **16/02/2019 (v0.1.2)** - Added support for events (Pings, Pongs) and more internal improvements (events handling according to [RFC-6455](https://tools.ietf.org/html/rfc6455))
- **20/02/2019 (v0.1.3)** - Users now dont have to specify TCP client types (ESP8266/ESP32) they are selected automatically.

0 comments on commit 86fcbfa

Please sign in to comment.