bump version 2.5.2

This commit is contained in:
Links2004
2024-07-29 13:07:27 +02:00
parent d6d4c516b3
commit 7da1dc5c6e
4 changed files with 15 additions and 17 deletions

View File

@ -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.
@ -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,
@ -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)

View File

@ -21,5 +21,5 @@
"type": "git",
"url": "https://github.com/Links2004/arduinoWebSockets.git"
},
"version": "2.5.1"
}
"version": "2.5.2"
}

View File

@ -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)

View File

@ -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.
@ -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_ */