Functions
Functions
BLE Services » Wechat (WECHAT)
Collaboration diagram for Functions:

## Functions
sdk_err_t | wechat_service_init (wechat_init_t *p_wechat_init)
| Initialize a WeChat Service instance and add in the DB. More...
sdk_err_t | wechat_airsync_data_indicate (uint8_t conn_idx, uint8_t *p_data, uint16_t length)
| WeChat Service Airsync indicate data. More...
sdk_err_t | wechat_pedo_measurement_send (uint8_t conn_idx, wechat_pedo_meas_t *p_pedo_meas)
| Send WeChat pedometer measurement information. More...
sdk_err_t | wechat_pedo_target_send (uint8_t conn_idx)
| Send WeChat pedometer target value. More...

## Detailed Description

## Function Documentation

## ◆ wechat_airsync_data_indicate()

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

WeChat Service Airsync indicate data.

Parameters

  [in] | conn_idx | The index of connection.
  [in] | p_data | Pointer to data.
  [in] | length | Length of data.

Returns
  Result of indicaition.

## ◆ wechat_pedo_measurement_send()

sdk_err_t wechat_pedo_measurement_send | ( | uint8_t | conn_idx,
|  | wechat_pedo_meas_t * | p_pedo_meas
| ) |  |

Send WeChat pedometer measurement information.

Parameters

  [in] | conn_idx | The index of connection.
  [in] | p_pedo_meas | Pointer to pedometer measurement.

Returns
  Result of send.

## ◆ wechat_pedo_target_send()

sdk_err_t wechat_pedo_target_send | ( | uint8_t | conn_idx | ) |

Send WeChat pedometer target value.

Parameters

  [in] | conn_idx | Connection index.

Returns
  Result of send.

## ◆ wechat_service_init()

sdk_err_t wechat_service_init | ( | wechat_init_t * | p_wechat_init | ) |

Initialize a WeChat Service instance and add in the DB.

Parameters

  [in] | p_wechat_init | Pointer to WeChat init value.

Returns
  Result of service initialization.