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 exchange_start_ms {0}
 Timestamp when the exchange attempt began (millis).
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).
IoFrame rx {}
 Most recent candidate frame received during the exchange.

Detailed Description

Context carried across one outbound authenticated exchange.

Definition at line 58 of file hub_exchange.h.

Member Data Documentation

◆ exchange_start_ms

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

Timestamp when the exchange attempt began (millis).

Definition at line 62 of file hub_exchange.h.

◆ 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 64 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 65 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 61 of file hub_exchange.h.

◆ state

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

Current state machine state.

Definition at line 59 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 60 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 63 of file hub_exchange.h.


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