I am currently working with cc2540 chip BLE Stack 1.4.1
Right now, I am using Microsoft universal windows application to write a CCC descriptor with an arbitrary bit pattern for the Battery Service/Battery_level characteristic. I was hoping to intercept the 16 bit message before it was processed as I don't really have a need for the battery service and so I was hoping to utilize the write method a little differently.
However, when I check the value passed into the batterywriteCB, I get a constant value regardless of the descriptor value. The offset value is also the same as the message value.
Does anyone know what is causing this and/or is my fundamental thinking about what I can do with the CCC descriptor flawed?
Thanks