mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-30 07:37:14 +02:00
bump version 2.5.2
This commit is contained in:
18
README.md
18
README.md
@ -1,4 +1,4 @@
|
|||||||
WebSocket Server and Client for Arduino [](https://github.com/Links2004/arduinoWebSockets/actions?query=workflow%3ACI+branch%3Amaster)
|
WebSocket Server and Client for Arduino [](https://github.com/Links2004/arduinoWebSockets/actions?query=branch%3Amaster)
|
||||||
===========================================
|
===========================================
|
||||||
|
|
||||||
a WebSocket Server and Client for Arduino based on RFC6455.
|
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++
|
```c++
|
||||||
void begin(const char *host, uint16_t port, const char * url = "/", const char * protocol = "arduino");
|
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");
|
void begin(String host, uint16_t port, String url = "/", String protocol = "arduino");
|
||||||
```
|
```
|
||||||
- `onEvent`: Callback to handle for websocket events
|
- `onEvent`: Callback to handle for websocket events
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
void onEvent(WebSocketClientEvent cbEvent);
|
void onEvent(WebSocketClientEvent cbEvent);
|
||||||
```
|
```
|
||||||
|
|
||||||
- `WebSocketClientEvent`: Handler for websocket events
|
- `WebSocketClientEvent`: Handler for websocket events
|
||||||
```c++
|
```c++
|
||||||
void (*WebSocketClientEvent)(WStype_t type, uint8_t * payload, size_t length)
|
void (*WebSocketClientEvent)(WStype_t type, uint8_t * payload, size_t length)
|
||||||
```
|
```
|
||||||
Where `WStype_t type` is defined as:
|
Where `WStype_t type` is defined as:
|
||||||
```c++
|
```c++
|
||||||
typedef enum {
|
typedef enum {
|
||||||
WStype_ERROR,
|
WStype_ERROR,
|
||||||
WStype_DISCONNECTED,
|
WStype_DISCONNECTED,
|
||||||
@ -100,13 +100,11 @@ Where `WStype_t type` is defined as:
|
|||||||
WStype_PING,
|
WStype_PING,
|
||||||
WStype_PONG,
|
WStype_PONG,
|
||||||
} WStype_t;
|
} WStype_t;
|
||||||
```
|
```
|
||||||
|
|
||||||
### Issues ###
|
### Issues ###
|
||||||
Submit issues to: https://github.com/Links2004/arduinoWebSockets/issues
|
Submit issues to: https://github.com/Links2004/arduinoWebSockets/issues
|
||||||
|
|
||||||
[](https://gitter.im/Links2004/arduinoWebSockets?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
||||||
|
|
||||||
### License and credits ###
|
### License and credits ###
|
||||||
|
|
||||||
The library is licensed under [LGPLv2.1](https://github.com/Links2004/arduinoWebSockets/blob/master/LICENSE)
|
The library is licensed under [LGPLv2.1](https://github.com/Links2004/arduinoWebSockets/blob/master/LICENSE)
|
||||||
|
@ -21,5 +21,5 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Links2004/arduinoWebSockets.git"
|
"url": "https://github.com/Links2004/arduinoWebSockets.git"
|
||||||
},
|
},
|
||||||
"version": "2.5.1"
|
"version": "2.5.2"
|
||||||
}
|
}
|
@ -1,5 +1,5 @@
|
|||||||
name=WebSockets
|
name=WebSockets
|
||||||
version=2.5.1
|
version=2.5.2
|
||||||
author=Markus Sattler
|
author=Markus Sattler
|
||||||
maintainer=Markus Sattler
|
maintainer=Markus Sattler
|
||||||
sentence=WebSockets for Arduino (Server + Client)
|
sentence=WebSockets for Arduino (Server + Client)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* @file WebSocketsVersion.h
|
* @file WebSocketsVersion.h
|
||||||
* @date 17.06.2024
|
* @date 29.07.2024
|
||||||
* @author Markus Sattler
|
* @author Markus Sattler
|
||||||
*
|
*
|
||||||
* Copyright (c) 2015 Markus Sattler. All rights reserved.
|
* Copyright (c) 2015 Markus Sattler. All rights reserved.
|
||||||
@ -25,12 +25,12 @@
|
|||||||
#ifndef WEBSOCKETSVERSION_H_
|
#ifndef WEBSOCKETSVERSION_H_
|
||||||
#define 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_MAJOR 2
|
||||||
#define WEBSOCKETS_VERSION_MINOR 5
|
#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_ */
|
#endif /* WEBSOCKETSVERSION_H_ */
|
||||||
|
Reference in New Issue
Block a user