|
Hello, |
Replies: 14 comments 6 replies
|
by the way, the page is loading but without any of the ACElements in the HTML content. |
|
the elements loaded in the page are here ;) |
|
activating AC/PB debug give this : it doesn't seems to be a free heap issue ... |
|
|
the html resulting page is 21KB |
|
hummmm ... looking at the PageBuilder code, It seems to be String concat fault ... https://stackoverflow.com/questions/55342103/how-many-bytes-can-you-store-inside-a-arduino-string |
|
for now, I reduced all variables names and used CSS styles instead of line, and tha page went from 21KB to 17KB, it seem to pass. What changed in the new dev branches which could solve this ? |
|
I changed my ACElement / HTML generation to reduce all variable names ;)
I'll try to switch versions after but I'm not sure how to do it in
PlatformIO.
Le lun. 29 mars 2021 à 15:02, Hieromon Ikasamo ***@***.***> a
écrit :
… tha page went from 21KB to 17KB, it seem to pass.
Is this the result of testing with the development branch?
In PageBuilder v150, the memory management structure has changed
significantly. It is devised to minimize string buffer fragmentation
associated with HTML generation.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#342 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXMP3FF5U6PNRYAT5JLI3TTGB253ANCNFSM4Z6MDJNQ>
.
--
Francois Deslandes
|
|
I used the reduced code leaving the logic part related to AutoConnect based on the specified commit hash and tested it with AutoConnect v1.3.0 combing PageBuilder v1.5.0. Chunked block (as size is 1270 bytes) count is 16, adding last block size as 1163 is 21483 bytes as total size. |
|
excellent ! thanks A LOT for your tests 😉
Le mer. 31 mars 2021 à 11:11, Hieromon Ikasamo ***@***.***> a
écrit :
… I used the reduced code leaving the logic part related to AutoConnect
based on the specified commit hash and tested it with AutoConnect v1.3.0
combing PageBuilder v1.5.0.
As a result, all of the various AutoConnectAux pages you have prepared had
display successfully. The largest HTML page is the SmartElec settings,
which is 21438 bytes in size.
[PB] Chunked, HEAD AUX_TITLE CSS_BASE CSS_UL blk:1270 CSS_INPUT_BUTTON CSS_INPUT_TEXT blk:1270 CSS_LUXBAR blk:1270 blk:1270 AUX_CSS blk:1270 MENU_PRE MENU_AUX MENU_POST blk:1270 ENC_TYPE AUX_ELEMENT [AC] CB in AHEAD /settingspage
portal where =
load begin
load end
blk:1270 blk:1270 blk:1270 blk:1270 blk:1270 blk:1270 blk:1270 blk:1270 blk:1270 blk:1270 AUX_URI blk:1163
Chunked block (as size is 1270 bytes) count is 16, adding last block size
as 1163 is 21483 bytes as total size.
In the next PageBuilder update turn, the internal string buffer size is
fixed, and HTML generation is used as the streaming output. Perhaps it can
bear on more than 21KB.
AutoConnect v1.3.0 combing PageBuilder v1.5.0 will solve your problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#342 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXMP3ARSVE4EZ3E4QYJKPTTGLRNZANCNFSM4Z6MDJNQ>
.
|
|
by the way, I tried the AC 1.3 / PB 1.5. not better in my case. I can't load the settings page the first time (but test conditions are not the same). |
|
I realize I am short in memory. |


I used the reduced code leaving the logic part related to AutoConnect based on the specified commit hash and tested it with AutoConnect v1.3.0 combing PageBuilder v1.5.0.
As a result, all of the various AutoConnectAux pages you have prepared had display successfully. The largest HTML page is the SmartElec settings, which is 21438 bytes in size.