This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

What value is BLE_GATTS_ATTR_LENS_MAX ?

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 ?

Parents
  • 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.

Reply
  • 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.

Children
Related