Skip to content
This repository was archived by the owner on Oct 4, 2025. It is now read-only.

Latest commit

 

History

History
13 lines (9 loc) · 290 Bytes

File metadata and controls

13 lines (9 loc) · 290 Bytes

Howto:

# Import the module
from devantech_relays import eth

# Initiate a relay instance
relay = eth.ETHRelay('10.10.10.10', password='password')

# Set relay 1 to closed
relay.set_relay_state(1, True)

# Check if relay 1 is closed
relay.get_relay_state(1)