A generic TCP/UDP network binding for openHAB that provides bidirectional text-based communication with any TCP or UDP device.
Designed as a modern replacement for the deprecated openHAB 2 TCP/UDP binding, it supports per-packet UDP mode, IP source filtering, compound command sequences, and auto-reconnecting TCP clients.
Supported Things
- UDP Connection (
tcpudp:udp): For connectionless communication. Supports per-packet or delimiter-based framing and source IP filtering. - TCP Client Connection (
tcpudp:tcp): For persistent stream-based communication. Supports auto-reconnect and configurable timeouts.
Features
- Compound Commands: Comma-separated command strings (e.g.
KEY1,KEY2,ENTER) are automatically split and sent with 500ms spacing. - Source Filtering: Restrict UDP receive to specific IP addresses.
- Per-packet mode: Each UDP datagram = one message (no delimiter needed).
- Status Monitoring: Includes
connectedandlastActivitychannels.
Configuration
Please refer to the README for detailed parameters for both TCP and UDP Thing types.
