You can have a look at the ble_app_peripheral in the SDK5 reference examples, the CUST1_IDX_ADC_VAL_1_VAL characteristic emulates the measurement of an adc (it uses a timer to change the values) and sends it using notifications to the ble host. Please have a look at the app_adcval1_timer_cb_handler(). You can easily replace the sample value with measurements from the adc by using the adc driver.
Hi Tzadok,
You can have a look at the ble_app_peripheral in the SDK5 reference examples, the CUST1_IDX_ADC_VAL_1_VAL characteristic emulates the measurement of an adc (it uses a timer to change the values) and sends it using notifications to the ble host. Please have a look at the app_adcval1_timer_cb_handler(). You can easily replace the sample value with measurements from the adc by using the adc driver.
Thanks MT_dialog