Modules | Macros
Defines
BLE Services » Alexa Gadget Service (AGS)

## Modules
| Advertising type
| The advertisiment type. Bit 0 : Pairing or reconnection mode, 0 - reconnection mode, 1 - pairing mode; Bit 1 : Classic Bluetooth discoverability; Bit 2~7 : Reserved for future use, set to 0x00.
| Characteristics Mask
| Bit masks for the initialization of ags_init_t::char_mask.

## Macros
#define | AGS_SERVICE_UUID
#define | AGS_HEADER_FIRST_RES 0x00
#define | AGS_HEADER_ACK_RES_1 0x00
#define | AGS_HEADER_ACK_PAYLOAD_LEN 0x02
#define | AGS_HEADER_ACK_RES_2 0x01
#define | AGS_TX_VAL_LEN_MAX 244
#define | AGS_RX_VAL_LEN_MAX 244
#define | AGS_CONNECTION_MAX 10

## Detailed Description

## Macro Definition Documentation

## ◆ AGS_CONNECTION_MAX

#define AGS_CONNECTION_MAX 10

Maximum number of AGS connections.

Definition at line 93 of file ags.h.

## ◆ AGS_HEADER_ACK_PAYLOAD_LEN

#define AGS_HEADER_ACK_PAYLOAD_LEN 0x02

Length of the ACK packet, in bytes.

Definition at line 75 of file ags.h.

## ◆ AGS_HEADER_ACK_RES_1

#define AGS_HEADER_ACK_RES_1 0x00

The first reserved value of header in the ACK packet.

Definition at line 74 of file ags.h.

## ◆ AGS_HEADER_ACK_RES_2

#define AGS_HEADER_ACK_RES_2 0x01

The second reserved value of header in the ACK packet.

Definition at line 76 of file ags.h.

## ◆ AGS_HEADER_FIRST_RES

#define AGS_HEADER_FIRST_RES 0x00

Reserved value of header in the first packet.

Definition at line 72 of file ags.h.

## ◆ AGS_RX_VAL_LEN_MAX

#define AGS_RX_VAL_LEN_MAX 244

Maximum length of RX Characteristic value.

Definition at line 79 of file ags.h.

## ◆ AGS_SERVICE_UUID

#define AGS_SERVICE_UUID

Value:
0xFB, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80,\
0x00, 0x10, 0x00, 0x00, 0x03, 0xFE, 0x00, 0x00

The UUID of Alexa Gadget Service for setting advertising data.

Definition at line 70 of file ags.h.

## ◆ AGS_TX_VAL_LEN_MAX

#define AGS_TX_VAL_LEN_MAX 244

Maximum length of TX Characteristic value.

Definition at line 78 of file ags.h.