|
antenna-switcher-client 0.5.0
Async C++17 client for the antenna-switcher device over the ESPHome native API
|
One step of a plan: either switch to an input, or wait for a delay. More...
#include <client.hpp>
Public Types | |
| enum class | Kind { Input , Delay } |
Static Public Member Functions | |
| static PlanStep | input_step (const int n) |
A step that selects input n (1..10). | |
| static PlanStep | delay_step (const int value, const TimeUnit unit=TimeUnit::Ms) |
A step that waits value in unit. | |
Public Attributes | |
| enum antenna_switcher::PlanStep::Kind | kind = Kind::Input |
| int | input = 0 |
| int | delay = 0 |
| TimeUnit | unit = TimeUnit::Ms |
One step of a plan: either switch to an input, or wait for a delay.
|
strong |
|
inlinestatic |
A step that waits value in unit.
|
inlinestatic |
A step that selects input n (1..10).
| int antenna_switcher::PlanStep::delay = 0 |
| int antenna_switcher::PlanStep::input = 0 |
| enum antenna_switcher::PlanStep::Kind antenna_switcher::PlanStep::kind = Kind::Input |
| TimeUnit antenna_switcher::PlanStep::unit = TimeUnit::Ms |