ble

Dependencies:   HC_SR04_Ultrasonic_Library Servo mbed

Fork of FIP_REV1 by Robotique FIP

Embed: (wiki syntax)

« Back to documentation index

GapEvents Class Reference

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

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:
GAP_EVENT_TIMEOUT 

Advertising timed out before a connection was established.

GAP_EVENT_CONNECTED 

A connection was established with a central device.

GAP_EVENT_DISCONNECTED 

A connection was closed or lost with a central device.

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.