mirror of
https://github.com/esphome/esphome.git
synced 2026-10-21 21:36:14 +00:00
The addressing layer lets several devices share a channel such as an RS485 bus or a radio, with 16-bit addresses. A link can carry several peers, each with its own stack of layers and its own id. Layers that work between two devices only are rejected with broadcast addressing. The fragmentation layer splits packets larger than the layers below allow, and joins them again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
613 B
Python
15 lines
613 B
Python
import esphome.codegen as cg
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
async def to_code_testing(config: object) -> None:
|
|
cg.add_define("PACKET_INTERFACE_ADDRESSING_PORT_COUNT", 4)
|
|
cg.add_define("USE_PACKET_INTERFACE_BASIC_ADDRESSING")
|
|
cg.add_define("USE_PACKET_INTERFACE_BASIC_FRAGMENTATION")
|
|
cg.add_define("USE_PACKET_INTERFACE_BASIC_SESSION")
|
|
cg.add_define("USE_PACKET_INTERFACE_HDLC")
|
|
cg.add_define("USE_PACKET_INTERFACE_XXTEA")
|
|
|
|
manifest.to_code = to_code_testing
|