Hi,
I am currently working with the nrf52840, ble_app_uart example under the ble_peripheral folder. Using the tutorial below:
I was able to add my own service and characteristic. However, the issue I am facing is that, when I transmit data from my own characteristic over bluetooth, I am getting unnecessary characters at the end. Under step 2.H the parameter 'attr_char_value.max_len = 42' in my code. (I arbitrarily chose this value, to make sure its large enough)
Then, under step 3E I call, our_temperature_characteristic_update() and pass in the desired length of my actual data. I set that value to p_len. In my case, this value is set to 35.
So, ideally I should be observing only 35 bytes displayed but I see extra data displayed which I don't want.
Would appreciate any suggestions to resolve this.
Thanks