ble
Dependencies: HC_SR04_Ultrasonic_Library Servo mbed
Fork of FIP_REV1 by
GapEvents Class Reference
The base class used to abstract away the callback events that can be triggered with the GAP. More...
#include <GapEvents.h>
Public Types | |
enum | gapEvent_e { GAP_EVENT_TIMEOUT = 1, GAP_EVENT_CONNECTED = 2, GAP_EVENT_DISCONNECTED = 3 } |
Identifies GAP events generated by the radio HW when an event callback occurs. More... | |
typedef enum GapEvents::gapEvent_e | gapEvent_t |
Identifies GAP events generated by the radio HW when an event callback occurs. | |
Public Member Functions | |
virtual void | onTimeout (void) |
Advertising timed out before a connection was established. | |
virtual void | onConnected (void) |
A connection was established with a central device. | |
virtual void | onDisconnected (void) |
A connection was closed or lost with a central device. |
Detailed Description
The base class used to abstract away the callback events that can be triggered with the GAP.
Definition at line 30 of file GapEvents.h.
Member Typedef Documentation
typedef enum GapEvents::gapEvent_e gapEvent_t |
Identifies GAP events generated by the radio HW when an event callback occurs.
Member Enumeration Documentation
enum gapEvent_e |
Identifies GAP events generated by the radio HW when an event callback occurs.
- Enumerator:
Definition at line 40 of file GapEvents.h.
Member Function Documentation
virtual void onConnected | ( | void | ) | [virtual] |
A connection was established with a central device.
Definition at line 67 of file GapEvents.h.
virtual void onDisconnected | ( | void | ) | [virtual] |
A connection was closed or lost with a central device.
Definition at line 76 of file GapEvents.h.
virtual void onTimeout | ( | void | ) | [virtual] |
Advertising timed out before a connection was established.
Definition at line 58 of file GapEvents.h.
Generated on Tue Jul 12 2022 21:42:02 by 1.7.2