Commit ccd5010
committed
Improve memory handling and analog resolution setup
Set analogReadResolution to 12 bits in the client to match sensor divisor. On the server, allocate DynamicJsonDocument on the heap to prevent stack overflow and increase buffer size for client config serialization to 4096 bytes. Added clarifying comments for RPM calculation and memory handling.1 parent 9015680 commit ccd5010
File tree
2 files changed
+14
-2
lines changed- TankAlarm-112025-Client-BluesOpta
- TankAlarm-112025-Server-BluesOpta
2 files changed
+14
-2
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
330 | 333 | | |
331 | 334 | | |
332 | 335 | | |
| |||
1268 | 1271 | | |
1269 | 1272 | | |
1270 | 1273 | | |
| 1274 | + | |
1271 | 1275 | | |
1272 | 1276 | | |
1273 | 1277 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3308 | 3308 | | |
3309 | 3309 | | |
3310 | 3310 | | |
3311 | | - | |
| 3311 | + | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
3312 | 3318 | | |
3313 | 3319 | | |
3314 | 3320 | | |
| |||
3407 | 3413 | | |
3408 | 3414 | | |
3409 | 3415 | | |
| 3416 | + | |
3410 | 3417 | | |
3411 | 3418 | | |
3412 | 3419 | | |
| 3420 | + | |
3413 | 3421 | | |
3414 | 3422 | | |
3415 | 3423 | | |
| |||
3605 | 3613 | | |
3606 | 3614 | | |
3607 | 3615 | | |
3608 | | - | |
| 3616 | + | |
3609 | 3617 | | |
3610 | 3618 | | |
3611 | 3619 | | |
| |||
0 commit comments