Repository navigation
Commit ce45e6c
feat(ota): manual update check + robust release parse, friendlier status (1.0.7)
Config-page "Check for updates now" button posts /api/ota/check, which sets
ota_check_now; otaAutoService() on Core 0 honors it immediately, bypassing the
6-hour timer (consumed only once the device is idle so it never interrupts a
pass/stream/upload).
Buffer the GitHub release JSON with getString() before parsing instead of
deserializing straight off the TLS stream. A mid-transfer stall -- seen on the
check that runs right after an STM flash -- was surfacing as a bare
"bad API response"; the body is now read whole within the timeout, and any real
parse failure reports the ArduinoJson error detail (and is logged with the body
length) so it can't be mistaken for "up to date".
Reword the result: both MCUs current -> "Up to date (ESP x, STM y)"; something
newer -> "Update available: ESP ... | STM ...".
Bump FW_VERSION 1.0.6 -> 1.0.7. Verified on hardware: repeated manual checks
report "Up to date (ESP 1.0.7, STM 1.0.6)" with no bad-response flicker.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 86e9121 commit ce45e6c
4 files changed
Lines changed: 59 additions & 15 deletions
File tree
- version/r1.1/firmware/platformio/esp32_firmware_platformio
- src
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
189 | 194 | | |
190 | 195 | | |
191 | 196 | | |
| |||
401 | 406 | | |
402 | 407 | | |
403 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
404 | 419 | | |
405 | 420 | | |
406 | 421 | | |
| |||
417 | 432 | | |
418 | 433 | | |
419 | 434 | | |
420 | | - | |
| 435 | + | |
421 | 436 | | |
422 | 437 | | |
423 | 438 | | |
| |||
432 | 447 | | |
433 | 448 | | |
434 | 449 | | |
| 450 | + | |
435 | 451 | | |
436 | 452 | | |
437 | 453 | | |
438 | 454 | | |
439 | 455 | | |
440 | 456 | | |
| 457 | + | |
441 | 458 | | |
442 | 459 | | |
443 | 460 | | |
| |||
Lines changed: 36 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
127 | 132 | | |
128 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
129 | 140 | | |
130 | 141 | | |
131 | 142 | | |
| |||
171 | 182 | | |
172 | 183 | | |
173 | 184 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
180 | 197 | | |
181 | 198 | | |
182 | 199 | | |
| |||
398 | 415 | | |
399 | 416 | | |
400 | 417 | | |
401 | | - | |
402 | 418 | | |
403 | | - | |
404 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
405 | 427 | | |
406 | 428 | | |
407 | 429 | | |
408 | 430 | | |
409 | | - | |
| 431 | + | |
| 432 | + | |
410 | 433 | | |
411 | 434 | | |
412 | 435 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| |||
0 commit comments