Functions
Functions
BLE Services » Power Consumption Service (PCS)

## Functions
sdk_err_t | pcs_service_init (pcs_init_t *p_pcs_init)
| Initialize a PCS Service instance and add in the database. More...
sdk_err_t | pcs_tx_data_send (uint8_t conn_idx, uint8_t *p_data, uint16_t length)
| Send data to peer device. More...
sdk_err_t | pcs_setting_reply (uint8_t conn_idx, uint8_t *p_data, uint16_t length)
| Reply parameters set result. More...

## Detailed Description

## Function Documentation

## ◆ pcs_service_init()

sdk_err_t pcs_service_init | ( | pcs_init_t * | p_pcs_init | ) |

Initialize a PCS Service instance and add in the database.

Parameters

  [in] | p_pcs_init | Pointer to PCS Service initialization variables.

Returns
  Result of service initialization.

## ◆ pcs_setting_reply()

sdk_err_t pcs_setting_reply | ( | uint8_t | conn_idx,
|  | uint8_t * | p_data,
|  | uint16_t | length
| ) |  |

Reply parameters set result.

Parameters

  [in] | conn_idx | Index of the connection.
  [in] | p_data | Pointer to sent data.
  [in] | length | Length of sent data.

Returns
  Result of sending data.

## ◆ pcs_tx_data_send()

sdk_err_t pcs_tx_data_send | ( | uint8_t | conn_idx,
|  | uint8_t * | p_data,
|  | uint16_t | length
| ) |  |

Send data to peer device.

Parameters

  [in] | conn_idx | Index of the connection.
  [in] | p_data | Pointer to sent data.
  [in] | length | Length of sent data.

Returns
  Result of sending data.