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/CC2640R2F: how to read & write gatt characteristics auto connect without keys

Part Number: CC2640R2F

Tool/software: Code Composer Studio

hi,

I m  working on cc2640r2f  board  i want to connect read and write  gatt characteristics one after auto connect without pressing keys 

suggest me how to connect  gatt characteristics values without pressing one of after one  without keys 

  • Hello Sony,
    You can start by reviewing how simple_central read the characteristics in simple_peripheral.
    After the connection is formed in case GAP_LINK_ESTABLISHED_EVENT startDiscClock is started that will post the event
    SBC_START_DISCOVERY_EVT and which in turn will start the characteristic discovery (SimpleBLECentral_startDiscovery).

    The discovery process can be reviewed in SimpleBLECentral_processGATTDiscEvent. You can implement read/write directly here after the desired characteristic handle is obtained.

    Then review the case GATT_RW: in SimpleBLECentral_handleKeys to see how to read/write from/to charHdl.