[serial_proxy] Drop the YAML mode option

The boot mode had no coherent job left: before any subscriber the tap
is served via tap_needs_port() regardless of mode, 1.17+ clients select
the mode explicitly after subscribing, and the only remaining effect
was arming the tap for a first-session client that never asked for it
and could not turn it off. The mode is now purely a session property
of the API: ports always boot RAW.

Also polish the tap contract per review: expose tap_is_observed(),
return false from write_from_tap() when the bytes are dropped, and
document that tap_pump() must not be called from tap callbacks.
This commit is contained in:
kbx81
2026-09-02 23:31:05 -05:00
parent 14f6d44ac2
commit fa5e784cbe
4 changed files with 27 additions and 43 deletions
@@ -8,4 +8,3 @@ serial_proxy:
- id: serial_proxy_1
name: Test Serial Port
port_type: RS232
mode: protocol