This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/CC2541: USB charging

Part Number: CC2541
Other Parts Discussed in Thread: CC2540EMK-USB, BLE-STACK, CC2540

Tool/software: TI C/C++ Compiler

Hi All, 

I'm using BLE stack 1.5.1.1 with CC2541. So, I have a device with USB-C type charging port with CC2541. 

What I want is, whenever the charger is connected to the USB. I want to read the value "1" in the Bluetooth characteristics and when the charger is not connected so the device will read "0" value. 

I created the BLE characteristics (READ and NOTIFY) but I don't know how to read the "1" and "0" value on that. Even Notify.

Regards.

Yatin Baluja