Skip to content

Commit e604785

Browse files
committed
some changes
1 parent cfae383 commit e604785

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Payload-data-read.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,16 @@ Header: 400010
128128
| 9 | 00 | ?
129129
|10 | 1A | ?
130130
|11:2 | 0/1 | Quiet mode (off/on) | bit
131+
|11:1 | 0/1 | **?? (end of disinfection)** | bit
132+
|11:0 | 0/1 | **Disinfection mode (off/on)** | bit
131133
|11 | 0 | ? | bit
132134
|12 | 00 | Error code part 1 | u8
133135
|13 | 00 | Error code part 2 | u8
134136
|14 | 00 | Error subcode | u8
135137
|15-17 | 00 | ?
136138
|17:1 | 0/1 | Defrost operation | bit
137139
|18:3 | 0/1 | Circ.pump (off/on) | bit
138-
|18:1 | 0/1 | ? | bit
140+
|18:1 | 0/1 | **Backup Heater step 1 DHW (off/on)** | bit
139141
|18:0 | 0/1 | Compressor (off/on) | bit
140142
|18:other | 0 | ? | bit
141143
|19:2 | 0/1 | DHW mode | bit

arduino-altherma-controller/05-pages.ino

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ const byte WEB_OUT_BUFFER_SIZE = 64; // size of web server write buffer (used b
3030
void sendPage(EthernetClient &client, byte reqPage) {
3131
char webOutBuffer[WEB_OUT_BUFFER_SIZE];
3232
ChunkedPrint chunked(client, webOutBuffer, sizeof(webOutBuffer)); // the StreamLib object to replace client print
33+
/*
34+
35+
use HTTP/1.0 because
36+
- HOSTS: isn't necessary as the Arduino will only host one server.
37+
- in HTTP/1.1 HOSTS: is mandatory (and necessary if you HOST more than one site on one server) and the server should answer a request with "400 Bad Request" if it is missing
38+
- we don't need to send a Content-Length in HTTP/1.0
39+
40+
An advantage of HTTP 1.1 is
41+
- you could keep the connection alive
42+
43+
*/
3344
if (reqPage == PAGE_ERROR) {
3445
chunked.print(F("HTTP/1.1 404 Not Found\r\n"
3546
"\r\n"

0 commit comments

Comments
 (0)