2 posts / 0 new
Last post
Tzadok
Offline
Last seen:4 years 9 months ago
加入:2015-10-06 12:56
how to collect data ?

这就跟你问声好!
我不能find any information how to collect data inside chip and send it to host when it`s connected.
Please any examples or code.

Device:
MT_dialog
Offline
Last seen:2 weeks 3 days ago
Staff
加入:2015-06-08 11:34
Hi Tzadok,

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