My climat station

Dependencies:   esp8266-driver

Embed: (wiki syntax)

« Back to documentation index

ble::generic::anonymous_namespace{GenericGap.cpp} Namespace Reference

ble::generic::anonymous_namespace{GenericGap.cpp} Namespace Reference

Functions

static bool is_prand_valid (const uint8_t *bytes, size_t len)
 Check if random bytes of an address are valid.
static bool is_disconnection_reason_valid (Gap::DisconnectionReason_t reason)

Function Documentation

static bool ble::generic::anonymous_namespace{GenericGap.cpp}::is_disconnection_reason_valid ( Gap::DisconnectionReason_t  reason ) [static]

Note: accepted reasons are: typedef pal::disconnection_reason_t reason_t; case reason_t::AUTHENTICATION_FAILLURE: case reason_t::REMOTE_USER_TERMINATED_CONNECTION: case reason_t::REMOTE_DEVICE_TERMINATED_CONNECTION_DUE_TO_LOW_RESOURCES: case reason_t::REMOTE_DEVICE_TERMINATED_CONNECTION_DUE_TO_POWER_OFF: case reason_t::UNSUPPORTED_REMOTE_FEATURE: case reason_t::PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED: case reason_t::UNACCEPTABLE_CONNECTION_PARAMETERS:

Definition at line 280 of file GenericGap.cpp.

static bool ble::generic::anonymous_namespace{GenericGap.cpp}::is_prand_valid ( const uint8_t *  bytes,
size_t  len 
) [static]

Check if random bytes of an address are valid.

Definition at line 180 of file GenericGap.cpp.