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

Context carried across one outbound authenticated exchange. More...

#include <hub_exchange.h>

Collaboration diagram for esphome::home_io_control::exchange::OutboundExchangeContext:

Public Attributes

OutboundExchangeState state {OutboundExchangeState::IDLE}
 Current state machine state.
uint8_t try_index {0}
 Current retry attempt (1‑based within EXCHANGE_RETRY_COUNT).
bool saw_challenge {false}
 True if a 0x3C challenge was received during this exchange.
uint32_t try_start_ms {0}
 millis() when this try's request transmit began, after any retry gap.
uint32_t wait_ms {0}
 Current timeout window for the active wait (ms).
uint32_t first_response_ms {0}
 Timestamp when the first valid response arrived (for RTT/timing).
uint16_t request_preamble {0}
 Start preamble (bytes) this try's request went out with.
uint32_t target_last_seen_ms {0}
 When the target was last heard (millis), 0 = unknown; logged as the try's age_ms= so field logs can relate hits to wake state.
IoFrame rx {}
 Most recent candidate frame received during the exchange.

Detailed Description

Context carried across one outbound authenticated exchange.

Definition at line 76 of file hub_exchange.h.

Member Data Documentation

◆ first_response_ms

uint32_t esphome::home_io_control::exchange::OutboundExchangeContext::first_response_ms {0}

Timestamp when the first valid response arrived (for RTT/timing).

Definition at line 82 of file hub_exchange.h.

◆ request_preamble

uint16_t esphome::home_io_control::exchange::OutboundExchangeContext::request_preamble {0}

Start preamble (bytes) this try's request went out with.

Definition at line 83 of file hub_exchange.h.

◆ rx

IoFrame esphome::home_io_control::exchange::OutboundExchangeContext::rx {}

Most recent candidate frame received during the exchange.

Definition at line 86 of file hub_exchange.h.

◆ saw_challenge

bool esphome::home_io_control::exchange::OutboundExchangeContext::saw_challenge {false}

True if a 0x3C challenge was received during this exchange.

Definition at line 79 of file hub_exchange.h.

◆ state

OutboundExchangeState esphome::home_io_control::exchange::OutboundExchangeContext::state {OutboundExchangeState::IDLE}

Current state machine state.

Definition at line 77 of file hub_exchange.h.

◆ target_last_seen_ms

uint32_t esphome::home_io_control::exchange::OutboundExchangeContext::target_last_seen_ms {0}

When the target was last heard (millis), 0 = unknown; logged as the try's age_ms= so field logs can relate hits to wake state.

Definition at line 84 of file hub_exchange.h.

◆ try_index

uint8_t esphome::home_io_control::exchange::OutboundExchangeContext::try_index {0}

Current retry attempt (1‑based within EXCHANGE_RETRY_COUNT).

Definition at line 78 of file hub_exchange.h.

◆ try_start_ms

uint32_t esphome::home_io_control::exchange::OutboundExchangeContext::try_start_ms {0}

millis() when this try's request transmit began, after any retry gap.

Definition at line 80 of file hub_exchange.h.

◆ wait_ms

uint32_t esphome::home_io_control::exchange::OutboundExchangeContext::wait_ms {0}

Current timeout window for the active wait (ms).

Definition at line 81 of file hub_exchange.h.


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