update github actions to arduino-cli for build tests

This commit is contained in:
Links2004
2024-01-05 14:57:05 +01:00
parent 30d5e13666
commit da7efc789e
4 changed files with 45 additions and 39 deletions

View File

@@ -61,7 +61,7 @@ class SocketIOclient : protected WebSocketsClient {
#endif
#endif
bool isConnected(void);
void onEvent(SocketIOclientEvent cbEvent);
void disconnect(void);

View File

@@ -571,7 +571,7 @@ String WebSockets::acceptKey(String & clientKey) {
*/
String WebSockets::base64_encode(uint8_t * data, size_t length) {
size_t size = ((length * 1.6f) + 1);
size = std::max(size, (size_t) 5); //minimum buffer size
size = std::max(size, (size_t)5); // minimum buffer size
char * buffer = (char *)malloc(size);
if(buffer) {
base64_encodestate _state;