Skip to content

brandtdaniels/InsteonMessage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InsteonMessage

This package contains types that enable the formation of an Insteon message.

Convenience

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.

Examples

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

About

This package contains types that enable the formation of an Insteon message.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages