update README.md

This commit is contained in:
Markus Sattler
2016-01-29 13:44:18 +01:00
parent b7a694c16a
commit 63f8675816
5 changed files with 33 additions and 13 deletions

View File

@ -27,7 +27,7 @@
#include <Arduino.h>
#define DEBUG_WEBSOCKETS(...) os_printf( __VA_ARGS__ )
//#define DEBUG_WEBSOCKETS(...) os_printf( __VA_ARGS__ )
#ifndef DEBUG_WEBSOCKETS
#define DEBUG_WEBSOCKETS(...)
@ -182,8 +182,11 @@ typedef struct {
class WebSockets {
protected:
#ifdef __AVR__
typedef void (*WSreadWaitCb)(WSclient_t * client, bool ok);
#else
typedef std::function<void(WSclient_t * client, bool ok)> WSreadWaitCb;
#endif
virtual void clientDisconnect(WSclient_t * client);
virtual bool clientIsConnected(WSclient_t * client);