nRF5 SDK for Mesh v5.0.0
Modules | Data Structures | Macros
Generic OnOff model

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.
 

Detailed Description

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.


Documentation feedback | Developer Zone | Subscribe | Updated