Tobias Tangemann
046020228d
Fix example code ( #462 )
...
Based on Pako2s comment
2019-06-22 18:05:20 +02:00
kaegi
78fe403dda
adjust canHandle() for AsyncEventSource ( #474 )
2019-06-22 17:59:46 +02:00
Me No Dev
f5b51fa69f
Fix travis ( #530 )
...
* Lets try to fix travis
* fix paths
* missed one path
* some more fixes
* try with copy?
* no log?
* Now fix the second sketch
2019-06-22 17:38:31 +02:00
Marco Tombesi
bde2fce07b
arduino json 6 async web server migration ( #491 )
...
* arduino json 6 async web server migration
* Update .travis.yml
fix travis error
* Revert "Update .travis.yml"
This reverts commit 37d1bf0e71ad21dc502aa632c1df503820686046.
* gitignore
* test fix travis
* fix travis
* fix proposed in #487
* fix travis
* fix travis
* fix travis
* fix travis
* ARDUINOJSON_5_COMPATIBILITY
* replaced to #if ARDUINOJSON_VERSION_MAJOR == 5
* fix
* added AsyncWebServer::end()
* added AsyncWebServer::end()
* Update WebServer.cpp
fix
* fix typo
* fix typo
2019-06-22 12:20:31 +02:00
Merlin Schumacher
95dedf7a2d
Corrected datatype für JSON_MIMETYPE ( #396 )
...
* Change JSON MIME type to application/json
* Corrected datatype für JSON_MIMETYPE (Fixes #390 )
2018-12-02 18:12:46 +01:00
me-no-dev
bed4146ec6
add limit to how many messages can be queued for each web socket client
2018-08-18 21:10:39 +02:00
me-no-dev
4c621f340c
improve web socket rapid sends a bit
...
to fully fix any possible issues, ws should use FreeRTOS Queues on ESP32
2018-08-15 23:55:03 +02:00
me-no-dev
35adb4dcb4
bump version
2018-07-24 21:28:03 +02:00
Arsène von Wyss
d7399a7664
Added handler for correct JSON deserialization, addresses #195 ( #287 )
...
* Added handler for correct JSON deserialization (even with multiple body data writes), addresses #195
* Fixed typo
* Added JSON handler example to readme
* Moved Json Handler uri parameter to constructor
* Use request->_tempObject for JSON char data buffer
* Moved onRequest to constructor in JSON async handler
2018-07-24 20:56:05 +02:00
Alexandr Zarubkin
fc66fae6a9
Allow to override default template placeholder value with #define during compilation. ( #366 )
...
Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
2018-07-24 20:26:46 +02:00
Richard Miles
566acfb813
Add SimpleServer example to show how to GET and POST and use parameters ( #341 )
2018-07-24 20:25:09 +02:00
Chris Byrne
b6b43d35fa
Handle multiple WebSocket frames within a TCP packet ( #338 )
2018-07-24 20:22:54 +02:00
Carlos Ruiz
69865879b4
Fix bug in const String& AsyncWebServerRequest::arg(const __FlashStringHelper * data) const ( #334 )
...
Fixes crash in AsyncWebServerRequest::arg with flash string param (eg: `request->arg(F("<arg name>"))` crashes). Solution is to call `strcpy_P` instead of `strcpy`, since the variable `p` is of type `PGM_P` and not `char *`.
2018-07-24 20:21:33 +02:00
Merlin Schumacher
fc71230a31
Change JSON MIME type to application/json ( #311 )
2018-07-24 20:13:14 +02:00
me-no-dev
1078e9166b
Add option to skip a callback if source data is not yet available
2018-07-15 10:21:21 +02:00
me-no-dev
28cdcf666d
Play nice with regular web server on esp32
...
Include the regular web server first and then the Async in your sketch
2018-07-05 16:05:04 +02:00
me-no-dev
decdca5a73
git went crazy
2018-07-05 11:07:47 +02:00
me-no-dev
b0f06c4dbc
Merge branch 'master' of https://github.com/me-no-dev/ESPAsyncWebServer
2018-07-05 11:07:05 +02:00
me-no-dev
b63ed5d93f
fix wrong buffer length in web socket reserve
2018-07-05 11:06:51 +02:00
copercini
44d95ae127
Disable Nagle Algorithm by default ( #335 )
...
This speed up the response in up to 10 times
2018-03-10 17:49:31 +01:00
Ivan Kravets
232b87aeb1
Add Installation section and instruction for @PlatformIO ( #293 )
2017-11-26 01:24:07 +01:00
Ivan Kravets
6edc431034
Use common manifest for ESP8266 / ESP32 dev/platforms with @platformio ( #292 )
2017-11-25 23:54:00 +01:00
Luc
63b5303880
Allow callback when request disconnects ( #284 )
...
* Allow callback when request disconnects
* Use typedef std::function<void(void)> ArDisconnectHandler
2017-11-16 19:45:33 +02:00
Hermann Kraus
8604f67a5f
Add documentation for AwsFrameInfo. ( #240 )
2017-11-06 15:58:07 +02:00
Hermann Kraus
c8c1784395
Expose _server and _pinfo members from AsyncWebSocketClient. ( #242 )
2017-11-06 15:55:58 +02:00
Qc
64adf2972d
Update AsyncWebSocket.cpp ( #247 )
2017-11-06 15:54:49 +02:00
Alexandr Zarubkin
bf2ffdc51c
Disabled request body parsing if the handler does nothing. ( #266 )
...
* Disabled request body parsing if the handler does nothing. This will save memory and prevent crashes on large POST requests.
Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
* Marked SPIFFSEditor request handler as non-trivial, as it needs to process POST requests.
Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
2017-11-06 15:48:47 +02:00
Alexandr Zarubkin
8139925eb9
Fixed templating engine bug. ( #267 )
...
Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
2017-11-06 15:47:45 +02:00
Alexander
054824a174
Fix server method typo in README ( #280 )
2017-11-06 15:46:45 +02:00
omersiar
d366e7c539
This re-enables previously removed WebSocket authentication which is … ( #272 )
...
* This re-enables previously removed WebSocket authentication which is orginaly implemented PR #143
* Update README.md
2017-10-30 09:43:31 +01:00
me-no-dev
313f3372c6
Don't send Content Length for WS 101
...
Fixes: https://github.com/me-no-dev/ESPAsyncWebServer/issues/255
Thanks @keduro :)
2017-10-10 22:38:13 +03:00
me-no-dev
05306e407f
Optimize exclude file logic in SPIFFSEditor
2017-10-09 00:28:15 +03:00
me-no-dev
e54369756a
Disable exclude in Editor
2017-10-08 20:05:08 +03:00
Ivan Kravets
ce83af3f3d
Update espressif8266_library.json ( #243 )
2017-10-03 09:46:07 +08:00
andig
41198b27ed
Update espressif32_library.json ( #239 )
2017-10-02 00:35:15 +08:00
me-no-dev
24c2af600b
Add possibility to reference an object to go along with WebSocketClient
...
fixes https://github.com/me-no-dev/ESPAsyncWebServer/issues/238
2017-10-01 10:13:11 +08:00
Greg Lincoln
46eebddd76
Allow "default" headers to be defined for all responses. ( #230 )
...
* Add DefaultHeaders singleton.
* Add documentation for DefaultHeaders.
2017-09-18 13:15:49 +08:00
me-no-dev
b681dbc3cd
Add cache for the editor
...
Idea from:
http://tinkerman.cat/embed-your-website-in-your-esp8266-firmware-image/
2017-09-12 23:30:11 +03:00
me-no-dev
4895f973e8
Adjust PIO Description
2017-09-11 21:51:41 +03:00
me-no-dev
fb7f69a6d6
Revert "Use single PIO manifest"
...
This reverts commit a7db995633
.
2017-09-11 21:50:31 +03:00
me-no-dev
a7db995633
Use single PIO manifest
...
Fixes: https://github.com/me-no-dev/ESPAsyncWebServer/issues/223
2017-09-11 17:42:00 +03:00
me-no-dev
b7bf1fe965
add separate platformio configs
...
Fixes: https://github.com/me-no-dev/ESPAsyncWebServer/issues/223
2017-09-11 17:27:44 +03:00
me-no-dev
3e6690396a
Some small adjustments for ESP32
...
- bump version
- remove compilation warnings
- do not require SPIFFS
2017-09-09 09:04:50 +03:00
Me No Dev
e4950444c4
Bump Version
2017-09-08 22:49:42 +03:00
me-no-dev
75fb9573e8
Make SPIFFSEditor work with other file systems (ESP32)
2017-09-08 13:36:24 +03:00
Me No Dev
9e300bcf90
Update README.md
2017-09-08 13:19:44 +03:00
arantius
fe080dc07e
Address compilation warning. ( #209 )
...
Specifically: "warning: comparison between signed and unsigned integer
expressions". Make `i` the same type as `len`, which it is frequently
compared to.
2017-09-07 22:02:46 +03:00
me-no-dev
d37bd16c22
Initial ESP32 compatibility
2017-09-07 22:01:58 +03:00
Alexandr Zarubkin
30f9dab08d
Fixed chunked file response length. ( #219 )
...
Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
2017-09-05 20:13:16 +03:00
Alexandr Zarubkin
e6c432e563
Something got lost during pull request #189 . Fixes #211 , updates documentation. ( #213 )
...
* Removed unnecessary memmove from chunked response generation.
* Added simple template processor to AsyncFileResponse.
Unzipped files in SPIFFS, Streams, PROGMEM strings, callback/chunked responses may have template placeholders like %TEMPLATE_VAR% inside. If callback is specified in Async...Response constructor call, it will be used to replace these with actual strings.
The prototype of callback is String(const String&), i.e. it gets variable name and returns its value.
Template variables' delimiter is currently percent sign ('%').
Maximal placeholder length is 32 chars (chosen somewhat arbitrarily, it may be stored on stack during processing). It is not guaranteed that placeholders longer than that will be processed.
Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
2017-08-31 19:44:23 +03:00