Created
May 9, 2017 21:08
-
-
Save adkron/e2b99402b40fd677837eceeb68f6c6a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Zwave.Command.EnterInclusion.Pattern do | |
@moduledoc false | |
defmacro pattern do | |
quote do | |
<<0x00, 0x4A, 0xC1, 0x01>> | |
end | |
end | |
end | |
defmodule Zwave.Command.EnterInclusion do | |
require Zwave.Command.EnterInclusion.Pattern, as: Pattern | |
@moduledoc """ | |
This command may be called by a primary controller application to | |
invoke the inclusion of new nodes in a Z-Wave network. | |
The default mode is | |
> ADD_NODE_ANY | | |
> ADD_NODE_OPTION_NORMAL_POWER | | |
> ADD_NODE_OPTION_NETWORK_WIDE | |
""" | |
defstruct [:foo] | |
defimpl Zwave.Command do | |
def serialize(_struct), do: Pattern.pattern | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment