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

## Detailed Description

## Macro Definition Documentation

## ◆ AGS_CONNECTION_MAX

#define AGS_CONNECTION_MAX

Value:
(10 < CFG_MAX_CONNECTIONS ?\
10 : CFG_MAX_CONNECTIONS)

Maximum number of AGS connections.

## ◆ AGS_HEADER_ACK_PAYLOAD_LEN

#define AGS_HEADER_ACK_PAYLOAD_LEN 0x02

Length of the ACK packet, in bytes.

## ◆ AGS_HEADER_ACK_RES_1

#define AGS_HEADER_ACK_RES_1 0x00

The first reserved value of header in the ACK packet.

## ◆ AGS_HEADER_ACK_RES_2

#define AGS_HEADER_ACK_RES_2 0x01

The second reserved value of header in the ACK packet.

## ◆ AGS_HEADER_FIRST_RES

#define AGS_HEADER_FIRST_RES 0x00

Reserved value of header in the first packet.

## ◆ AGS_RX_VAL_LEN_MAX

#define AGS_RX_VAL_LEN_MAX 244

Maximum length of RX Characteristic value.

## ◆ 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.

## ◆ AGS_TX_VAL_LEN_MAX

#define AGS_TX_VAL_LEN_MAX 244

Maximum length of TX Characteristic value.