mirror of
https://github.com/esphome/esphome.git
synced 2026-10-21 21:36:14 +00:00
Layers stack on a link and are configured on its packet_interface entry. Each layer type registers itself with its kind, so a new type needs only a new module. The first is a reliability layer in the style of HDLC asynchronous balanced mode, with go-back-N retransmission. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
305 B
Python
10 lines
305 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("USE_PACKET_INTERFACE_HDLC")
|
|
|
|
manifest.to_code = to_code_testing
|