This package contains types that enable the formation of an Insteon message.
There are several convenience options such as message flag values for standard and extended message types, command types, and a raw value string format for printing or network requests.
let insteonId = InsteonIdentifier(0xAA, 0xBB, 0xCC)
let lightOnFiftyPercent = StandardLengthDirectCommand.lightOn(
level: 0x80
)
let lightOnFiftyPercentMessage = StandardLengthMessage(
to: insteonId,
command: lightOnFiftyPercent.command
)
print(lightOnFiftyPercentMessage.rawValue)
// Outputs: AABBCC0F1180