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.

CCS/LAUNCHXL-CC26X2R1: Trying to read the value from simple peripheral and gpio

Part Number: LAUNCHXL-CC26X2R1


Tool/software: Code Composer Studio

Hey!

I'm trying to implement a part of the project where I have to read the data from DIO pins and send it to the host device via BLE.

I'm very confused as I'm not sure how to implement it in simple peripheral.

I'm trying to write the data by notifying as follows and it works perfectly as you can see below.

case GATT_CLIENT_CHAR_CFG_UUID:
        status = GATTServApp_ProcessCCCWriteReq( connHandle, pAttr, pValue, len,
                                                 offset, GATT_CLIENT_CFG_NOTIFY );

but when I try to implement the same with the read it is showing me errors. I'm not even sure if its correct.

case GATT_PROP_READ:
         status = extern GATTServApp_ReadAttr( connHandle, pAttr, service,    pValue,
                                               16,       offset, 8,     GATT_CLIENT_CFG_NOTIFY );

Please help me as I'm stuck on this for quite long. Any examples or any help is very appriciated!

Thanks in Advance,

Kedar