Bluetooth LE library for Nucleo board

Dependents:   Nucleo_BLE_HeartRate Nucleo_BLE_UART Nucleo_BLE_Demo Nucleo_BLE_UART

Embed: (wiki syntax)

« Back to documentation index

GattService Class Reference

GattService Class Reference

GATT service. More...

#include <GattService.h>

Public Member Functions

 GattService (const UUID &uuid, GattCharacteristic *characteristics[], unsigned numCharacteristics)
 Creates a new GattCharacteristic using the specified 16-bit UUID, value length, and properties.

Detailed Description

GATT service.

Definition at line 31 of file GattService.h.


Constructor & Destructor Documentation

GattService ( const UUID &  uuid,
GattCharacteristic characteristics[],
unsigned  numCharacteristics 
)

Creates a new GattCharacteristic using the specified 16-bit UUID, value length, and properties.

Creates a new GattService using the specified 128-bit UUID.

Note:
The UUID value must be unique in the service and is normally >1
Parameters:
[in]uuidThe UUID to use for this characteristic
[in]characteristicsA pointer to an array of characteristics to be included within this service
[in]numCharacteristicsThe number of characteristics
Note:
The UUID value must be unique on the device
Parameters:
[in]uuidThe 16 byte (128-bit) UUID to use for this characteristic

EXAMPLE

Definition at line 39 of file GattService.cpp.