Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
3ec7cefb
Commit
3ec7cefb
authored
Feb 15, 2022
by
Eric Duminil
Browse files
Too much for ESP8266
parent
dc72399d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_server.cpp
View file @
3ec7cefb
...
...
@@ -192,11 +192,11 @@ namespace web_server {
uint8_t
mm
=
ss
/
60
;
ss
-=
mm
*
60
;
//NOTE: Splitting in multiple parts in order to use less RAM
char
content
[
2
2
00
];
// Update if needed
//NOTE: Splitting in multiple parts in order to use less RAM
. Higher than 2000 apparently crashes the ESP8266
char
content
[
2
0
00
];
// Current size (with Lorawan):
// INFO - Header size : 1825 - Body size : 2005 - Script size : 1947
//FIXME: Body too long with Lorawan!
//FIXME: Body too long with Lorawan!
Split in 4 parts?
snprintf_P
(
content
,
sizeof
(
content
),
header_template
,
sensor
::
co2
,
config
::
ampel_name
(),
wifi
::
local_ip
,
csv_writer
::
filename
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment