forked from me-no-dev/ESPAsyncWebServer
Added printf_P method (#31)
* Prevent buffer overflow on received data * pass to 7 char to avoid save to flash by SDK * return _contentLength, avoid array reparse to know len * Added FlashStringHelper for text and binary * Added FlashStringHelper also to AsyncWebSocketClient * Added PROGMEM doc * Corrected binary was sending PSTR as text, addded len * Server calls client method and code as asked @me-no-dev * server calls client method and code as asked by @me-no-dev * Changed Code presentation * Added printf_P methods
This commit is contained in:
@@ -100,7 +100,8 @@ class AsyncWebSocketClient {
|
||||
void message(AsyncWebSocketMessage *message){ _queueMessage(message); }
|
||||
|
||||
size_t printf(const char *format, ...);
|
||||
|
||||
size_t printf_P(PGM_P formatP, ...);
|
||||
|
||||
void text(const char * message, size_t len);
|
||||
void text(const char * message);
|
||||
void text(uint8_t * message, size_t len);
|
||||
@@ -181,6 +182,8 @@ class AsyncWebSocket: public AsyncWebHandler {
|
||||
|
||||
size_t printf(uint32_t id, const char *format, ...);
|
||||
size_t printfAll(const char *format, ...);
|
||||
size_t printf_P(uint32_t id, PGM_P formatP, ...);
|
||||
size_t printfAll_P(PGM_P formatP, ...);
|
||||
|
||||
//event listener
|
||||
void onEvent(AwsEventHandler handler){
|
||||
|
||||
Reference in New Issue
Block a user