This model implements the message based interface required to set the OnOff value on the server. More...
Modules | |
Generic OnOff client model interface | |
Persistence module for the Generic OnOff Server model related states | |
This module provides APIs for handling persistence of the Generic OnOff Server model related states. | |
Generic OnOff server model interface | |
Data Structures | |
struct | generic_onoff_state_t |
Unpacked message structure typedefs are used for API interfaces and for implementing model code. More... | |
struct | generic_onoff_set_params_t |
Mandatory parameters for the Generic OnOff Set message. More... | |
struct | generic_onoff_status_params_t |
Parameters for the Generic OnOff Status message. More... | |
Macros | |
#define | GENERIC_ONOFF_COMPANY_ID 0xFFFF |
Model Company ID. | |
#define | GENERIC_ONOFF_MAX (0x01) |
Maximum value of the onoff state, as defined in Bluetooth Mesh Model Specification (MshMDLv1.0.1) | |
#define | GENERIC_ONOFF_DEFAULT_ONOFF (0x0) |
Defines default value for the Generic OnOff state. | |
This model implements the message based interface required to set the OnOff value on the server.
Server model itself is a stateless model. The state information resides in the user application. This interface API takes care of validating the packet formats and field values. These APIs should be used in combination with necessary behavioral implementation to create a qualifiable model implementation.