mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 22:02:17 +01:00
The p_* setters and emitState() no longer publish or emit straight away:
they set SHADE_CHANGED_* / GROUP_CHANGED_* bits on the shade or group.
At the end of every loop() pass SomfyShadeController::sendChanges()
publishes the MQTT topics whose bits are set and sends one shadeState or
groupState, then clears the bits. emitState(evt) with an event name and
emitState(num) for one client still go out at once.
publishShadeTopics() (ShadeChanges.cpp, tested natively) writes the topics
from a shade snapshot; publishState() on connect uses it too. That fixes
MQTT position and target, a constant 50 since
|
||
|---|---|---|
| .. | ||
| stubs | ||
| test_frame | ||
| test_json | ||
| test_logging | ||
| test_loopqueue | ||
| test_modeleditor | ||
| test_motion | ||
| test_mqttcommands | ||
| test_pulse | ||
| test_radioscheduler | ||
| test_rollingcode | ||
| test_sensors | ||
| test_shadechanges | ||
| test_shaderequests | ||
| test_shadetx | ||
| test_snapshot | ||
| test_txbuffer | ||
| test_txjob | ||
| test_utils | ||