Skip to content

Instantly share code, notes, and snippets.

@adkron
Created May 9, 2017 21:08
Show Gist options
  • Save adkron/e2b99402b40fd677837eceeb68f6c6a0 to your computer and use it in GitHub Desktop.
Save adkron/e2b99402b40fd677837eceeb68f6c6a0 to your computer and use it in GitHub Desktop.
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