Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
esphome::home_io_control::ScanResponder Struct Reference

One roll-call responder, decoded on arrival. More...

#include <roll_call.h>

Collaboration diagram for esphome::home_io_control::ScanResponder:

Public Attributes

uint8_t src [NODE_ID_SIZE]
 Responder's node ID; also the dedup key.
DeviceType type
 Decoded device type.
uint8_t subtype
 Decoded device subtype.
bool inverted
 Decoded position-inversion flag.
int16_t rssi_dbm
 RSSI of the reply that produced this entry.
uint8_t manufacturer
 Raw manufacturer ID; name via manufacturer_name().
uint8_t flags
 Multi Information Byte; decode with DISCOVERY_FLAGS_* masks.
bool has_extended
 Whether manufacturer/flags above are present.
bool metadata_complete
 Whether type/subtype were present in the payload.
uint8_t key_slot
 Which key of the sweep it answered under: 0 is the hub key, n the n-th per-device key (RollCallKeys).

Detailed Description

One roll-call responder, decoded on arrival.

Deliberately holds only what the report needs, so the fixed array stays small: the raw IoFrame is discarded as soon as decode_discovery_response() has run, and the hex device-ID string is rebuilt from src at format time rather than stored (a std::string member would cost more per entry than this whole struct).

Definition at line 42 of file roll_call.h.

Member Data Documentation

◆ flags

uint8_t esphome::home_io_control::ScanResponder::flags

Multi Information Byte; decode with DISCOVERY_FLAGS_* masks.

Definition at line 49 of file roll_call.h.

◆ has_extended

bool esphome::home_io_control::ScanResponder::has_extended

Whether manufacturer/flags above are present.

Definition at line 50 of file roll_call.h.

◆ inverted

bool esphome::home_io_control::ScanResponder::inverted

Decoded position-inversion flag.

Definition at line 46 of file roll_call.h.

◆ key_slot

uint8_t esphome::home_io_control::ScanResponder::key_slot

Which key of the sweep it answered under: 0 is the hub key, n the n-th per-device key (RollCallKeys).

Definition at line 52 of file roll_call.h.

◆ manufacturer

uint8_t esphome::home_io_control::ScanResponder::manufacturer

Raw manufacturer ID; name via manufacturer_name().

Definition at line 48 of file roll_call.h.

◆ metadata_complete

bool esphome::home_io_control::ScanResponder::metadata_complete

Whether type/subtype were present in the payload.

Definition at line 51 of file roll_call.h.

◆ rssi_dbm

int16_t esphome::home_io_control::ScanResponder::rssi_dbm

RSSI of the reply that produced this entry.

Definition at line 47 of file roll_call.h.

◆ src

uint8_t esphome::home_io_control::ScanResponder::src[NODE_ID_SIZE]

Responder's node ID; also the dedup key.

Definition at line 43 of file roll_call.h.

◆ subtype

uint8_t esphome::home_io_control::ScanResponder::subtype

Decoded device subtype.

Definition at line 45 of file roll_call.h.

◆ type

DeviceType esphome::home_io_control::ScanResponder::type

Decoded device type.

Definition at line 44 of file roll_call.h.


The documentation for this struct was generated from the following file: