This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to transmit dynamic sensor datas on nrf52832 BLE?

Thanks in advanced. I achieve 4 uint8_t dynamic sensor datas, I want 52832 transmit them through BLE continuously. Based on examples\ble_peripheral\ble_app_gatts_c, I can see rssi value is advertised dynamicly in nrf connect app, which is done by ble_advertising_init(). I think this value is located in below struct marked red, am I right?

typedef struct
{
......
int8_t * p_tx_power_level; /**< TX Power Level field. */

......


ble_advdata_service_data_t * p_service_data_array; /**< Array of Service data structures. */

......
} ble_advdata_t;

So I want to follow rssi to tranmit my datas, maybe they can be stored in param marked blue. I find p_tx_power_level is encoded by ble_advdata_encode(), but unfortunately, I don't know where p_tx_power_level is assigned. So my question is: where is p_tx_power_level assigned? Is my idea right? Is there any example to transmit user-defined dynamic data continuously?

Parents Reply Children
No Data
Related