ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::packet_interface::PacketMetaData Class Reference

A struct to hold metadata about a packet. More...

#include <packet_interface.h>

Data Fields

StringRef info {}
 
uint16_t source_address {0}
 
uint16_t destination_address {0}
 
float rssi {NAN}
 
float snr {NAN}
 
uint8_t mac_address [MAC_ADDRESS_SIZE] {}
 

Detailed Description

A struct to hold metadata about a packet.

Parameters
infoAdditional information about the packet
source_addressWith an addressing layer, the sender of a received packet; 0 if not known
destination_addressWith an addressing layer, the destination of a packet; when sending, 0 uses the configured destination
rssiThe RSSI of the packet
snrThe SNR of the packet
mac_addressThe MAC address of the sender/receiver

Definition at line 37 of file packet_interface.h.

Field Documentation

◆ destination_address

uint16_t esphome::packet_interface::PacketMetaData::destination_address {0}

Definition at line 41 of file packet_interface.h.

◆ info

StringRef esphome::packet_interface::PacketMetaData::info {}

Definition at line 39 of file packet_interface.h.

◆ mac_address

uint8_t esphome::packet_interface::PacketMetaData::mac_address[MAC_ADDRESS_SIZE] {}

Definition at line 44 of file packet_interface.h.

◆ rssi

float esphome::packet_interface::PacketMetaData::rssi {NAN}

Definition at line 42 of file packet_interface.h.

◆ snr

float esphome::packet_interface::PacketMetaData::snr {NAN}

Definition at line 43 of file packet_interface.h.

◆ source_address

uint16_t esphome::packet_interface::PacketMetaData::source_address {0}

Definition at line 40 of file packet_interface.h.


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