Markus

Results 259 comments of Markus

you can play with the timeout here: https://github.com/Links2004/arduinoWebSockets/blob/master/src/WebSockets.h#L82 but the timeout normally is 2 sec not 10 sec.

looks like the event flow for async goes wrong with socket.io.

This library used the SSL/TLS provided by the Arduino Core. If there is a Arduino SSL/TLS library for the STM32 Implementing it will be possible. if there is a `WiFiClientSecure`...

Hi, you loop is the problem, you dont call the `loop` function, during waiting in the `while`. since the the server sends a ping and the ESP can not answer...

Hi, decoding and handling the JSON part is responsibility of the user code, since the lib only implements the "lower" levels to give max flexibility on the JSON data to...

`sendEVENT` is a wrapper for `send` its there to make it easier for people :) https://github.com/Links2004/arduinoWebSockets/blob/master/src/SocketIOclient.cpp#L146-L148 `sendTXT` is from the underling WebSocketsClient and is `protected` so you can not use...

try to print the `payload` before the `deserializeJson` most likely the `/hub,` is the problem and need to be filtered out. the example where not written or tested with `namespace`...

the `deserializeJson` is from the `arduinojson` lib. you can use many types including `const char *` and `string`. docu: https://arduinojson.org/v6/api/json/deserializejson/

no the other way around the code check if there is a ID for a ACK and it yes it is "removed". The pointer is moved to the first char...

correct in the `namespace` case the pointer is at the `/` and all then needs to be done is to move it to the `[`. may not hardcore a +6...