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()?
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.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.