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

Transmitting data from ADC over pipe

I'm trying to send data acquired from the ADC and monitor it using the master emulator.

The values I'm getting do not appear to make sense though.

I'm using the BLE_HRS with ADC example discussed here but from looking at the code it only outputs the adc reading on the GPIO port 2.

I've changed the code so that heart_rate is 0

  err_code = ble_hrs_heart_rate_measurement_send(&m_hrs, 0);

Looking at the master emulator the value still seems to jump around:

[00:23:05.4] Received a HandleValueNotification on handle 000E with value 0400

[00:23:06.4] Received a HandleValueNotification on handle 000E with value 1400E942E942E942

[00:23:07.4] Received a HandleValueNotification on handle 000E with value 1400E942E942E942E942

The code appears to be updating the hex file and I've disabled all the usages of sensorsim. Is there something I'm misunderstanding about how the send function works?

Related