introduce Gap::Role_t

This commit is contained in:
Rohit Grover 2015-05-21 11:22:54 +01:00
parent 2909d1a5a1
commit 4eb839361c
1 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,11 @@ public:
uint16_t connectionSupervisionTimeout; /**< Connection Supervision Timeout in 10 ms units, see @ref BLE_GAP_CP_LIMITS.*/
} ConnectionParams_t;
enum Role_t {
PERIPHERAL = 0x1, /**< Peripheral Role. */
CENTRAL = 0x2, /**< Central Role. */
};
enum SecurityMode_t {
SECURITY_MODE_NO_ACCESS,
SECURITY_MODE_ENCRYPTION_OPEN_LINK, /**< require no protection, open link. */