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.

CC2650DK example clarification

Expert 1340 points


In the CC2650DK SimpleBLEPeripheral example, SimpleBLEPeripheral_init() calls

// Register with GAP for HCI/Host messages
GAP_RegisterForMsgs(selfEntity);

// Register for GATT local events and ATT Responses pending for transmission
GATT_RegisterForMsgs(selfEntity);

which allows for SimpleBLEPeripheral_sendAttRsp() and SimpleBLEPeripheral_processGATTMsg() to do some extra processing on HCI and ATT responses. I don't see the same configuration in the HeartRate example. What exactly does this all do? Is it not important enough to be needed in the HeartRate example?

  • Yes, these are not usually needed for all the applications as they are usually involved with advanced or custom features supported by our device. For example, the GAP_RegisterForMsgs is used to receive HCI event messages in the application task for commands specified in the Vendor Specific HCI guide in the documents folder of the SDK release.