Functions
Functions
BLE Services » Log Notification Service (LNS)

## Functions
sdk_err_t | lns_service_init (lns_evt_handler_t evt_handler)
| Initialize a Log Notification Service instance and add in the DB. More...
sdk_err_t | lns_pay_load_update (uint8_t conn_idx, const uint16_t payload_len)
| Update lns gatt payload length (MTU - 3). More...
sdk_err_t | lns_log_info_send (uint8_t conn_idx)
| Notify saved log information if it`s cccd is enabled. More...
sdk_err_t | lns_log_status_send (uint8_t conn_idx, const uint8_t log_num)
| Send saved log status. More...

## Detailed Description

## Function Documentation

## ◆ lns_log_info_send()

sdk_err_t lns_log_info_send | ( | uint8_t | conn_idx | ) |

Notify saved log information if it`s cccd is enabled.

Parameters

  [in] | conn_idx | Connnection index.

Returns
  Result of operation.

## ◆ lns_log_status_send()

sdk_err_t lns_log_status_send | ( | uint8_t | conn_idx,
|  | const uint8_t | log_num
| ) |  |

Send saved log status.

Parameters

  [in] | conn_idx | Connnection index.
  [in] | log_num | NUmber of log.

Returns
  Result of operation.

## ◆ lns_pay_load_update()

sdk_err_t lns_pay_load_update | ( | uint8_t | conn_idx,
|  | const uint16_t | payload_len
| ) |  |

Update lns gatt payload length (MTU - 3).

Parameters

  [in] | conn_idx | Connnection index.
  [in] | payload_len | Length of payload.

Returns
  Result of operation.

## ◆ lns_service_init()

sdk_err_t lns_service_init | ( | lns_evt_handler_t | evt_handler | ) |

Initialize a Log Notification Service instance and add in the DB.

Parameters

  [in] | evt_handler | Log Notification Service event handler.

Returns
  Result of service initialization.