Functions | |
sdk_err_t | ths_service_init (ths_init_t *p_ths_init) |
Initialize a Throughput Service instance and add in the DB. More... | |
sdk_err_t | ths_data_send (uint8_t conn_idx, uint8_t *p_data, uint16_t length) |
Send data to peer device. More... | |
sdk_err_t | ths_settings_notify (uint8_t conn_idx, uint8_t *p_settings, uint16_t length) |
Notify the peer device of the change of settings. More... | |
ths_transport_mode_t | ths_transport_mode_get (void) |
Get current transport mode of device. More... | |
sdk_err_t ths_data_send | ( | uint8_t | conn_idx, |
uint8_t * | p_data, | ||
uint16_t | length | ||
) |
Send data to peer device.
[in] | conn_idx | Connection index |
[in] | p_data | The Pointer of sent value |
[in] | length | The Length of sent value |
sdk_err_t ths_service_init | ( | ths_init_t * | p_ths_init | ) |
Initialize a Throughput Service instance and add in the DB.
[in] | p_ths_init | Throughput Service initialization variable |
sdk_err_t ths_settings_notify | ( | uint8_t | conn_idx, |
uint8_t * | p_settings, | ||
uint16_t | length | ||
) |
Notify the peer device of the change of settings.
[in] | conn_idx | Connection index. |
[in] | p_settings | Pointer to the value of new settings. |
[in] | length | The Length of the value of new settings. |
ths_transport_mode_t ths_transport_mode_get | ( | void | ) |
Get current transport mode of device.