Syntax
typedef struct {
  ard_decl_type_enum type;
  uint8_t uuid[37];
  uint8_t isprimary;
  LGATT_CHAR_PROPERTIES prop;
  LGATT_PERMISSION permission;
  int32_t triggered;
} LGATTServiceInfo;
ContentsIndex
PreviousUpNext
LGATTServiceInfo
Syntax
typedef struct {
  ard_decl_type_enum type;
  uint8_t uuid[37];
  uint8_t isprimary;
  LGATT_CHAR_PROPERTIES prop;
  LGATT_PERMISSION permission;
  int32_t triggered;
} LGATTServiceInfo;
Description

This is a structure that defines the Bluetooth GATT service, characteristic and descriptor. 

A Bluetooth GATT service is defined by an array of LGATTServiceInfo, the first array elements must be of type TYPE_SERVICE, followed by elements of type TYPE_CHARACTERISTIC or type TYPE_DESCRIPTOR. The last element in the array must be of type TYPE_END. 

Please see LGATTServerClass.loadService() for more details.

File

LGATTServer.h

Members
Members 
Description 
ard_decl_type_enum type; 
The type of this entry can be TYPE_SERVICE, TYPE_CHARACTERISTIC, TYPE_DESCRIPTOR, or TYPE_END. 
uint8_t uuid[37]; 
The UUID string of this entry in canonical form representation, for example, "123e4567-e89b-12d3-a456-426655440000" plus the terminating NULL character. Please see http://en.wikipedia.org/wiki/Universally_unique_identifier#Definition for details. 
uint8_t isprimary; 
This entry is valid only if it's type TYPE_SERVICE. Set value to 1 if this service is a primary service of the GATT profile which is discovered by the primary service. 
LGATT_CHAR_PROPERTIES prop; 
This is the bit field flag representing properties of a characteristic or descriptor. Multiple properties can be OR-ed. This entry is valid only if it's type TYPE_SERVICE or TYPE_DESCRIPTOR. 
LGATT_PERMISSION permission; 
This is the bit field flag representing access permissions of this characteristic or descriptor. This entry is valid only if it's type TYPE_SERVICE or TYPE_DESCRIPTOR. 
int32_t triggered; 
This is reserved and it must be 0. 
Group