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

Per-device bookkeeping of overheard foreign traffic. More...

#include <status_poll_policy.h>

Collaboration diagram for esphome::home_io_control::ForeignTraffic:

Public Attributes

uint8_t last_request_cmd {0}
 Command of the last request heard to this device.
std::string last_request_from
 Controller that sent it (frame source); empty = none heard.
uint32_t last_request_ms {0}
 When it was heard; 0 = never.
uint32_t last_read_poll_ms {0}
 When a read last armed a poll; 0 = never.
uint32_t pending_due_ms {0}
 When the armed poll is due; 0 = none pending.

Detailed Description

Per-device bookkeeping of overheard foreign traffic.

Kept apart from PollTracking: it is not part of the polling window's lifecycle, so begin_tracking() and clear() never reset it. Timestamps are millis() values, 0 = never; all comparisons use unsigned now - t, which stays correct across a millis() wrap.

Definition at line 217 of file status_poll_policy.h.

Member Data Documentation

◆ last_read_poll_ms

uint32_t esphome::home_io_control::ForeignTraffic::last_read_poll_ms {0}

When a read last armed a poll; 0 = never.

Definition at line 221 of file status_poll_policy.h.

◆ last_request_cmd

uint8_t esphome::home_io_control::ForeignTraffic::last_request_cmd {0}

Command of the last request heard to this device.

Definition at line 218 of file status_poll_policy.h.

◆ last_request_from

std::string esphome::home_io_control::ForeignTraffic::last_request_from

Controller that sent it (frame source); empty = none heard.

Definition at line 219 of file status_poll_policy.h.

◆ last_request_ms

uint32_t esphome::home_io_control::ForeignTraffic::last_request_ms {0}

When it was heard; 0 = never.

Definition at line 220 of file status_poll_policy.h.

◆ pending_due_ms

uint32_t esphome::home_io_control::ForeignTraffic::pending_due_ms {0}

When the armed poll is due; 0 = none pending.

Definition at line 222 of file status_poll_policy.h.


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