Macros
Defines
BLE Services » Power Consumption Service (PCS)

## Macros
#define | PCS_CONNECTION_MAX
#define | PCS_MAX_DATA_LEN 244
#define | PCS_SERVICE_UUID
#define | PCS_SET_PARAM_SUCCESS 0x00
#define | PCS_SET_PARAM_FAIL 0x81
#define | PCS_SET_ADV_DATA_3B 0x03
#define | PCS_SET_ADV_DATA_10B 0x0a
#define | PCS_SET_ADV_DATA_17B 0x11
#define | PCS_SET_ADV_DATA_24B 0x18
#define | PCS_SET_ADV_DATA_31B 0x1f

## Detailed Description

## Macro Definition Documentation

## ◆ PCS_CONNECTION_MAX

#define PCS_CONNECTION_MAX

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

Maximum number of Power Consumption Service connections.

## ◆ PCS_MAX_DATA_LEN

#define PCS_MAX_DATA_LEN 244

Maximum length of application data packet which is transmitted via PCS.

## ◆ PCS_SERVICE_UUID

#define PCS_SERVICE_UUID

Value:
0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
0x0A, 0x46, 0x44, 0xD3, 0x01, 0x05, 0xED, 0xA6

The UUID of Power Consumption Service for setting advertising data.

## ◆ PCS_SET_ADV_DATA_10B

#define PCS_SET_ADV_DATA_10B 0x0a

Set 10 byte advertising data.

## ◆ PCS_SET_ADV_DATA_17B

#define PCS_SET_ADV_DATA_17B 0x11

Set 17 byte advertising data.

## ◆ PCS_SET_ADV_DATA_24B

#define PCS_SET_ADV_DATA_24B 0x18

Set 24 byte advertising data.

## ◆ PCS_SET_ADV_DATA_31B

#define PCS_SET_ADV_DATA_31B 0x1f

Set 31 byte advertising data.

## ◆ PCS_SET_ADV_DATA_3B

#define PCS_SET_ADV_DATA_3B 0x03

Set 3 byte advertising data.

## ◆ PCS_SET_PARAM_FAIL

#define PCS_SET_PARAM_FAIL 0x81

PCS parameters set unsuccessfully.

## ◆ PCS_SET_PARAM_SUCCESS

#define PCS_SET_PARAM_SUCCESS 0x00

PCS parameters set successfully.