Packet Interface Packet Transport Platform
The packet_interface platform of the Packet Transport component sends and receives
sensor data through any Packet Interface. This lets packet transport run over every
channel that has a packet interface platform, without a separate packet transport platform for each one.
The largest packet that packet transport will send is the largest packet the packet interface’s layers take: the
max_packet_size of the link, less the bytes each layer adds, or the max_packet_size of a fragmentation or
compression layer.
Example Configuration
Section titled “Example Configuration”# Example configuration entryuart: tx_pin: GPIOXX rx_pin: GPIOXX baud_rate: 115200
packet_interface: - platform: uart id: serial_link
packet_transport: - platform: packet_interface packet_interface: serial_link sensors: - dht_temp
sensor: - platform: dht pin: GPIOXX temperature: name: "Temperature" id: dht_tempConfiguration Variables
Section titled “Configuration Variables”- packet_interface (Optional, ID): The ID of the
Packet Interface to use. With addressing
peers, the ID of one of the peers. Required unless the only packet interface is a single link with no layers, as each layer has an ID of its own.
All other options are the same as for the Packet Transport component.