Dialog Semiconductor customer support - Byte 10bitAdc characteristic handler https://support.dialog-semiconductor.com/resource-keywords/byte-10bitadc-characteristic-handler en Switch case for differentiating charateristics https://support.dialog-semiconductor.com/switch-case-differentiating-charateristics

Hi Dialog Team,

I have one handler function for the four characteristics which are used to turn on LEDs . Each characteristic should turn on only one LED . However, each characteristic can turn on all the 4 LEDs. I have used one handler function for all the four characteristics.
a) Should i use seperate handler functions?
b) Is there any way to differenciate between the data that i am writing in characteristics from one another.
I just want to check, in which characteristic the user inputs data and accordingly turn the LEDs on/off.

I am eagerly waiting for a reply.

Device: 
Thu, 21 May 2015 07:25:01 +0000 Sam123 1579 at https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/switch-case-differentiating-charateristics#comments