-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Many changes regarding Json support and memory improvement
- Support for ArduinoJson 7 - Fixed missing `step` for slider when using short ranges or big ranges - Supports WebSocket batching to avoid crash with the initial layout sending. Batch sizes can be controlled with `DASH_JSON_SIZE`. - Mitigate concurrency issue with `isAsyncAccessInProgress()` to avoid updating cards while the layout is being generated - Changed card and stat names to `const char*` to improve memory usage. This makes them immutable and require to use constants. - Removed the ability to change a stat name (for this dynamic use case we can remove and recreate a stat) - refreshLayout() refactoring in order to avoid too many layout refresh requests when updating components dynamically: let the caller trigger a layout refresh once. - Removed refreshStatistics() because it it not refreshing the stats only but all the updated cards also - Removed update calls when adding / removing cards and stats in order to avoid trigger a sequence of full layout updates: this is u to the user to call refreshLayout() when he has finished - Support both ESPAsyncWebServer fork from ESPHome and yubox-node-org (which as a better api for sending websocket buffers and dealing with concurrency)
- Loading branch information
1 parent
b677bf6
commit 7696dff
Showing
11 changed files
with
3,200 additions
and
3,202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.