nRF51 SDK - S120 SoftDevice
|
Describes the possible types of Service/Protocol Contexts for a bonded/peer device. More...
Macros | |
#define | DM_PROTOCOL_CNTXT_NONE 0x00 |
#define | DM_PROTOCOL_CNTXT_GATT_SRVR_ID 0x01 |
#define | DM_PROTOCOL_CNTXT_GATT_CLI_ID 0x02 |
#define | DM_PROTOCOL_CNTXT_ALL (DM_PROTOCOL_CNTXT_GATT_SRVR_ID | DM_PROTOCOL_CNTXT_GATT_CLI_ID) |
Describes the possible types of Service/Protocol Contexts for a bonded/peer device.
Possible Service/Protocol context per peer device. The Device Manager provides the functionality of persistently storing the Service/Protocol context and can automatically load them when needed. For example system attributes for a GATT Server. Based on the nature of the application, not all service types may be needed. The application can specify only the service/protocol context it wants to use at the time of registration.
#define DM_PROTOCOL_CNTXT_ALL (DM_PROTOCOL_CNTXT_GATT_SRVR_ID | DM_PROTOCOL_CNTXT_GATT_CLI_ID) |
All Service/Protocol Context, this implies that the application wants to associate all Service/Protocol Information with the bonded device. This is configurable based on system requirements. If the application has only one type of service, this define could be altered to reflect the same.
#define DM_PROTOCOL_CNTXT_GATT_CLI_ID 0x02 |
GATT Client Service Context, this implies the application does associate GATT Client with the peer device and this information will be loaded when needed for a bonded device
#define DM_PROTOCOL_CNTXT_GATT_SRVR_ID 0x01 |
GATT Server Service Context, this implies the application does associate GATT Server with the peer device and this information will be loaded when needed for a bonded device
#define DM_PROTOCOL_CNTXT_NONE 0x00 |
No Service Context, this implies the application does not want to associate any service/protocol context with the peer device