If I wanted to read an attribute value and I know the attribute handle, is it better to use ATT_ReadReq() or GATT_ReadCharValue()?
Does GATT_ReadCharValue() eventually just call ATT_ReadReq()?
Vic
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.
If I wanted to read an attribute value and I know the attribute handle, is it better to use ATT_ReadReq() or GATT_ReadCharValue()?
Does GATT_ReadCharValue() eventually just call ATT_ReadReq()?
Vic
In answer to your question, yes GATT_ReadCharValue does call ATT_ReadReq. Other GATT sub-procedures are not as simple, as they may call a series of ATT commands and perform certain behavior based on the responses from the peer device. If you want to properly use the full BLE stack, GATT sub-procedures should be used rather than directly calling ATT functions.