Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
roll_call.cpp File Reference

The roll-call sweep: keyed 0x2A broadcasts over channels and power classes. More...

#include "roll_call.h"
#include "log_helpers.h"
#include "proto_constants.h"
#include "proto_device_model.h"
#include <cstring>
#include <string>
Include dependency graph for roll_call.cpp:

Go to the source code of this file.

Namespaces

namespace  esphome
namespace  esphome::home_io_control

Functions

ScanAddResult esphome::home_io_control::add_scan_responder (ScanResponder *responders, uint8_t &count, uint8_t capacity, const IoFrame &frame, int16_t rssi_dbm, uint8_t key_slot, const ScanResponder *&entry)
 Record a responder unless its address is already present.
uint8_t esphome::home_io_control::count_enabled_passes (ScanPowerClasses selection)
 How many of ROLL_CALL_PASSES selection actually calls.
RollCallAttemptResult esphome::home_io_control::run_roll_call_sweep (ExchangeEngine &engine, const uint8_t *node_id, const uint8_t *key, uint8_t key_slot, const TuningConfig &tuning, ScanState &state, uint8_t &attempt, uint8_t total_attempts)
 Run the full roll-call sweep under one key: every enabled pass on every channel.
std::string esphome::home_io_control::format_roll_call_responder (const ScanResponder &responder, const std::string &device_id, const IoDevice *registered, const RollCallReplyKeys &keys, RollCallKeyDisplay display)
 Format one roll-call responder's report line(s).
std::string esphome::home_io_control::build_hub_key_pull_report (const PulledKeyReportInfo &info, const ScanState &state, DeviceRegistry &registry)
 Build the report for a pull that returned the hub's own key from a node no platform drives.
std::string esphome::home_io_control::build_pulled_key_report (const PulledKeyReportInfo &info, const ScanState &state, DeviceRegistry &registry)
 Build the one report a proven key pull prints after looking for the devices that hold the key.

Detailed Description

The roll-call sweep: keyed 0x2A broadcasts over channels and power classes.

Definition in file roll_call.cpp.