This may be a stupid question, but...
What value is BLE_GATTS_ATTR_LENS_MAX
Its mentioned a lot in the SDK, but I can't actually find a value for it actually defined in the SDK or elsewhere ?
This may be a stupid question, but...
What value is BLE_GATTS_ATTR_LENS_MAX
Its mentioned a lot in the SDK, but I can't actually find a value for it actually defined in the SDK or elsewhere ?
Have a look in the file ble_gatts.h:
/** @defgroup BLE_GATTS_ATTR_LENS_MAX Maximum attribute lengths
* @{ */
#define BLE_GATTS_FIX_ATTR_LEN_MAX (510) /**< Maximum length for fixed length Attribute Values. */
#define BLE_GATTS_VAR_ATTR_LEN_MAX (512) /**< Maximum length for variable length Attribute Values. */
/** @} */
A tip is to use some kind of "Search in all files" functionality in your IDE. In Keil you can press CTRL+SHIFT+F and type in e.g. "BLE_GATTS_ATTR_LENS_MAX". That will lead you to ble_gatts.h.
Thanks.
I'm not using Keil, I'm using NotePad++. I does have a very good multi file search, but I was looking for something like
ifdef BLE_GATTS_ATTR_LENS_MAX
But BLE_GATTS_ATTR_LENS_MAX is not actually the name thats defined, - from what you posted the values are BLE_GATTS_FIX_ATTR_LEN_MAX and BLE_GATTS_VAR_ATTR_LEN_MAX
Anyway. Thanks again