mbed HRM11017を使ってkonashi.jsでナイトライダー

Dependencies:   BLE_API_Native_IRC mbed

Fork of BLE_RCBController by Junichi Katsu

Embed: (wiki syntax)

« Back to documentation index

GattServerEvents Class Reference

GattServerEvents Class Reference

The base class used to abstract away the callback events that can be triggered with the GATT Server. More...

#include <GattServerEvents.h>

Inherited by GattServerEventHandler.

Public Types

enum  gattEvent_e {
  GATT_EVENT_DATA_SENT = 1, GATT_EVENT_DATA_WRITTEN = 2, GATT_EVENT_UPDATES_ENABLED = 3, GATT_EVENT_UPDATES_DISABLED = 4,
  GATT_EVENT_CONFIRMATION_RECEIVED = 5
}
 

Identifies GATT events generated by the radio HW when an event callback occurs.

More...
typedef enum
GattServerEvents::gattEvent_e 
gattEvent_t
 Identifies GATT events generated by the radio HW when an event callback occurs.

Public Member Functions

virtual void onDataSent (uint16_t charHandle)
 A message was successfully transmitted.
virtual void onDataWritten (uint16_t charHandle)
 The GATT client (the phone, tablet, etc.) wrote data to a characteristic or descriptor on the GATT Server (the peripheral device).
virtual void onUpdatesEnabled (uint16_t charHandle)
 A Notify or Indicate flag was enabled in the CCCD.
virtual void onUpdatesDisabled (uint16_t charHandle)
 A Notify or Indicate flag was disabled in the CCCD.
virtual void onConfirmationReceived (uint16_t charHandle)
 A confirmation response was received from an Indicate message.

Detailed Description

The base class used to abstract away the callback events that can be triggered with the GATT Server.

Definition at line 30 of file GattServerEvents.h.


Member Typedef Documentation

Identifies GATT events generated by the radio HW when an event callback occurs.


Member Enumeration Documentation

Identifies GATT events generated by the radio HW when an event callback occurs.

Enumerator:
GATT_EVENT_DATA_SENT 

Fired when a msg was successfully sent out (notify only?)

GATT_EVENT_DATA_WRITTEN 

Client wrote data to Server (separate into char and descriptor writes?)

GATT_EVENT_UPDATES_ENABLED 

Notify/Indicate Enabled in CCCD.

GATT_EVENT_UPDATES_DISABLED 

Notify/Indicate Disabled in CCCD.

GATT_EVENT_CONFIRMATION_RECEIVED 

Response received from Indicate message.

Definition at line 39 of file GattServerEvents.h.


Member Function Documentation

virtual void onConfirmationReceived ( uint16_t  charHandle ) [virtual]

A confirmation response was received from an Indicate message.

Definition at line 88 of file GattServerEvents.h.

virtual void onDataSent ( uint16_t  charHandle ) [virtual]

A message was successfully transmitted.

Definition at line 54 of file GattServerEvents.h.

virtual void onDataWritten ( uint16_t  charHandle ) [virtual]

The GATT client (the phone, tablet, etc.) wrote data to a characteristic or descriptor on the GATT Server (the peripheral device).

Definition at line 64 of file GattServerEvents.h.

virtual void onUpdatesDisabled ( uint16_t  charHandle ) [virtual]

A Notify or Indicate flag was disabled in the CCCD.

Definition at line 80 of file GattServerEvents.h.

virtual void onUpdatesEnabled ( uint16_t  charHandle ) [virtual]

A Notify or Indicate flag was enabled in the CCCD.

Definition at line 72 of file GattServerEvents.h.