grizzly v0.7.0 Grizzly.CommandClass.NodeProvisioning.MetaExtension.ProductType View Source
This Information Type is used to advertise the product type data of a supporting node
Link to this section Summary
Types
The generic and specific device classes are what is advertised in the Node Information Frame (NIF)
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %Grizzly.CommandClass.NodeProvisioning.MetaExtension.ProductType{
generic_device_class: atom(),
installer_icon: Grizzly.IconType.icon_name(),
specific_device_class: atom()
}
t() :: %Grizzly.CommandClass.NodeProvisioning.MetaExtension.ProductType{ generic_device_class: atom(), installer_icon: Grizzly.IconType.icon_name(), specific_device_class: atom() }
The generic and specific device classes are what is advertised in the Node Information Frame (NIF)
The installer icon for the specific device see Grizzly.IconType
for
more information
Link to this section Functions
Link to this function
from_binary(arg) View Source
Make a ProductType.t()
from a binary string
According to the specification for this extension the critical bit must not be set. If it is then the binary is not consider valid and should be ignored.
Link to this function
to_binary(product_type) View Source
Build a binary from a ProductType.t()
If there is invalid device classes or installer icon type with will return
{:error, reason}
where reason is:
:invalid_generic_device_class
- the generic device class could not be encoded into its byte representation:invalid_specific_device_class
- the specific device class could nto be encoded into its byte representation:unknown_icon_type
- the installer icon type cannot be encoded into its byte representation