Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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>
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
| typedef enum GattServerEvents::gattEvent_e gattEvent_t |
Identifies GATT events generated by the radio HW when an event callback occurs.
Member Enumeration Documentation
| enum gattEvent_e |
Identifies GATT events generated by the radio HW when an event callback occurs.
- Enumerator:
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.
Generated on Tue Jul 12 2022 15:07:16 by
1.7.2