Functions
Functions
BLE Services » LMS Service (LMS)

## Functions
sdk_err_t | lms_service_init (lms_init_t *p_lms_init)
| Add an LMS Service instance in the DB. More...
sdk_err_t | lms_notify_cmd (uint8_t conn_idx, uint8_t *p_data, uint16_t length)
| Send data to peer device. More...
sdk_err_t | lms_notify_data (uint8_t conn_idx, uint8_t *p_data, uint16_t length)
| Send data to peer device. More...

## Detailed Description

## Function Documentation

## ◆ lms_notify_cmd()

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

Send data to peer device.

Parameters

  [in] | conn_idx | Connection index
  [in] | p_data | The Pointer of send value
  [in] | length | The Lenth of send value

Returns
  Result of notify and indicate value

## ◆ lms_notify_data()

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

Send data to peer device.

Parameters

  [in] | conn_idx | Connection index
  [in] | p_data | The Pointer of send value
  [in] | length | The Lenth of send value

Returns
  Result of notify and indicate value

## ◆ lms_service_init()

sdk_err_t lms_service_init | ( | lms_init_t * | p_lms_init | ) |

Add an LMS Service instance in the DB.

Parameters

  [in] | p_lms_init | :Pointer to LMS Service environment variable

Returns
  Result of service initialization.