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

Data Transmission Fault

Hi there

I started with an empty ble_template and added my own custom service emulating the batterey service, with all the same functions etc. Using master emulator i can see the characteristic increasing and decreasing just like the batterey service.

My problem is that i wish i add another characteristic to this custom service. After defining and adding the characteristic to the stack i check with master emulator and i can now see both characteristics but the other one has stopped transmitting data and has become static.

Any thoughts?

function to handle data change (same in batteryservice.c) image description

function to update characteristic with value (same in hrs example main.c) image description

function for service init in main.c image description

sensor simulator image description

Thanks

Related