Skip to content

Commit

Permalink
Improve performance with 100 modules (#86)
Browse files Browse the repository at this point in the history
* Show Free heap and block sizes in web page

* Swap DynamicJsonDocument for streaming print statements for memory optimisation

* Tidy up JSON generation code
  • Loading branch information
stuartpittaway authored Jan 20, 2021
1 parent 9f2b6f6 commit 7674057
Show file tree
Hide file tree
Showing 5 changed files with 318 additions and 144 deletions.
2 changes: 2 additions & 0 deletions ESPController/include/DIYBMSServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class DIYBMSServer
static AsyncWebServer *_myserver;
static String UUIDString;

static void PrintStreamComma(AsyncResponseStream *response,const __FlashStringHelper *ifsh, uint32_t value);

static void handleNotFound(AsyncWebServerRequest *request);
static void monitor2(AsyncWebServerRequest *request);
static void monitor3(AsyncWebServerRequest *request);
Expand Down
Loading

0 comments on commit 7674057

Please sign in to comment.