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.

ble stack

Hi all,

I can't understand following line in simpleGATTprofile.h

// Callback when a characteristic value has changed
typedef void (*simpleProfileChange_t)( uint8 paramID );

typedef struct
{
  simpleProfileChange_t        pfnSimpleProfileChange;  // Called when characteristic value changes
} simpleProfileCBs_t;

where this callback function is provided.

Please help me what this callback function is actually doing.

Thanks,

Ravi

  • Any time the GATT client device (e.g. a phone) writes a value to one of the writeable characteristics in the SimpleGATTservice, the callback to the application is called so that the application is aware of the change in value.

  • Thanks for your answer.

    I have another confusion.

    How to add the code of usb to serial in the simpleBLEcentral project provided in ble stack?

    Actually i want to communicate central device with my C program running in linux machine via USB connection.

    So plz guide me.