ESPSomfy-RTS/test
cjkas 05c3d309a6 fix: send wifiStrength only for real signal changes
At -70 dBm the RSSI moves a dBm or two constantly, so the >1 dBm check
every 1.5s sent wifiStrength to every client about 270 times an hour.
That is extra traffic on an already lossy link and a state write in
Home Assistant for each one.

Broadcast on a channel change, or for a change of at least 3 dBm no
more than every 10s. A newly connected client still gets the current
value straight away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 20:35:42 +02:00
..
stubs test: cover the frame codec and command names 2026-10-11 13:20:39 +02:00
test_frame test: cover the frame codec and command names 2026-10-11 13:20:39 +02:00
test_json fix: never write past a JSON buffer or send a broken socket event 2026-10-11 13:31:48 +02:00
test_motion test: cover shade travel and position/command flipping 2026-10-11 13:38:23 +02:00
test_utils fix: send wifiStrength only for real signal changes 2026-10-11 20:35:42 +02:00
README init 2026-03-10 20:23:48 +01:00

This directory is intended for PlatformIO Test Runner and project tests.

Unit Testing is a software testing method by which individual units of
source code, sets of one or more MCU program modules together with associated
control data, usage procedures, and operating procedures, are tested to
determine whether they are fit for use. Unit testing finds problems early
in the development cycle.

More information about PlatformIO Unit Testing:
- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html