Skip to content

Commit

Permalink
bump version 2.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Links2004 committed Jul 29, 2024
1 parent d6d4c51 commit 7da1dc5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
WebSocket Server and Client for Arduino [![Build Status](https://github.com/Links2004/arduinoWebSockets/workflows/CI/badge.svg?branch=master)](https://github.com/Links2004/arduinoWebSockets/actions?query=workflow%3ACI+branch%3Amaster)
WebSocket Server and Client for Arduino [![Build Status](https://github.com/Links2004/arduinoWebSockets/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/Links2004/arduinoWebSockets/actions?query=branch%3Amaster)
===========================================

a WebSocket Server and Client for Arduino based on RFC6455.
Expand Down Expand Up @@ -74,19 +74,19 @@ The mode can be activated in the ```WebSockets.h``` (see WEBSOCKETS_NETWORK_TYPE
```c++
void begin(const char *host, uint16_t port, const char * url = "/", const char * protocol = "arduino");
void begin(String host, uint16_t port, String url = "/", String protocol = "arduino");
```
```
- `onEvent`: Callback to handle for websocket events
```c++
```c++
void onEvent(WebSocketClientEvent cbEvent);
```
```

- `WebSocketClientEvent`: Handler for websocket events
```c++
```c++
void (*WebSocketClientEvent)(WStype_t type, uint8_t * payload, size_t length)
```
```
Where `WStype_t type` is defined as:
```c++
```c++
typedef enum {
WStype_ERROR,
WStype_DISCONNECTED,
Expand All @@ -100,13 +100,11 @@ Where `WStype_t type` is defined as:
WStype_PING,
WStype_PONG,
} WStype_t;
```
```

### Issues ###
Submit issues to: https://github.com/Links2004/arduinoWebSockets/issues

[![Join the chat at https://gitter.im/Links2004/arduinoWebSockets](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Links2004/arduinoWebSockets?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

### License and credits ###

The library is licensed under [LGPLv2.1](https://github.com/Links2004/arduinoWebSockets/blob/master/LICENSE)
Expand Down
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"type": "git",
"url": "https://github.com/Links2004/arduinoWebSockets.git"
},
"version": "2.5.1"
}
"version": "2.5.2"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=WebSockets
version=2.5.1
version=2.5.2
author=Markus Sattler
maintainer=Markus Sattler
sentence=WebSockets for Arduino (Server + Client)
Expand Down
8 changes: 4 additions & 4 deletions src/WebSocketsVersion.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file WebSocketsVersion.h
* @date 17.06.2024
* @date 29.07.2024
* @author Markus Sattler
*
* Copyright (c) 2015 Markus Sattler. All rights reserved.
Expand All @@ -25,12 +25,12 @@
#ifndef WEBSOCKETSVERSION_H_
#define WEBSOCKETSVERSION_H_

#define WEBSOCKETS_VERSION "2.5.1"
#define WEBSOCKETS_VERSION "2.5.2"

#define WEBSOCKETS_VERSION_MAJOR 2
#define WEBSOCKETS_VERSION_MINOR 5
#define WEBSOCKETS_VERSION_PATCH 1
#define WEBSOCKETS_VERSION_PATCH 2

#define WEBSOCKETS_VERSION_INT 2005001
#define WEBSOCKETS_VERSION_INT 2005002

#endif /* WEBSOCKETSVERSION_H_ */

0 comments on commit 7da1dc5

Please sign in to comment.