I am reading the sample app codes of ble_app_hrs_s110_pca10028, which is using the simulated data as the heart rate, battery data. My question is in which function the data is put into the data package broadcasted. Thanks!
I am reading the sample app codes of ble_app_hrs_s110_pca10028, which is using the simulated data as the heart rate, battery data. My question is in which function the data is put into the data package broadcasted. Thanks!
Look at sensor_sim_init
function in main.c and the files ble_hrs.c
and ble_hrs.h
in .../SDK_7.1/components/ble/ble_services/ble_hrs for, i.e. , ble_hrs_heart_rate_measurement_send
and others hrm service functions.
-c
Look at sensor_sim_init
function in main.c and the files ble_hrs.c
and ble_hrs.h
in .../SDK_7.1/components/ble/ble_services/ble_hrs for, i.e. , ble_hrs_heart_rate_measurement_send
and others hrm service functions.
-c
thanks, I further found that the call-back functions defined in "main.c" are called when the timers for the GATT services are triggered, and these functions handle the sending of the data