User wants to control a USB relay module to switch devices on/off or automate based on sensor input.
/dev/ttyUSB1 and user is in dialout group.relay.connect() before any control. Wait 500ms for connection.A0 01 01 A2, OFF: A0 01 00 A1. Different modules may use different protocols.get_status() tracks last command. May differ if manual override occurred.relay.disconnect() to release serial port.No persistent storage. Relay state tracked in memory during session only.
| Endpoint | Purpose |
|---|---|
| ---------- | --------- |
/dev/ttyUSB1 | Serial control |
| Topic | File |
|---|---|
| ------- | ------ |
| Setup & examples | setup.md |
| Troubleshooting | setup.md |
共 1 个版本