A crate for interacting with INSTEON™ home automation devices via an attached PowerLinc Modem.
// Use the modem attached to /dev/ttyUSB0 to turn on the switch // with address 11.22.33. let mut modem = Modem::from_path("/dev/ttyUSB0")?; modem.send_message((Address::from_str("11.22.33")?, Command::On).into()).await?;
An Address Represents an INSTEON device address. These are 3 bytes and are commonly represented as hex numbers separated by '.', e.g. '2b.a1.11'.
This represents the result of a completed link.
Represents the link flags.
Represents details about a Message.
Information about the attached modem.
Represents the various link modes available.
Errors returned from various operations.
The default duration to wait for Message replies. 10 seconds.