ARMmbed / ble-nrf51822

Nordic stack and drivers for the mbed BLE_API
Other
46 stars 51 forks source link

Allow GattAttributes to have variable length #81

Closed andresag01 closed 8 years ago

andresag01 commented 8 years ago

Previously the concepts of initLength and lenth were clearly separated. However, this was at the cost of registering all characteristics in the SoftDevice as having variable length. Clearly, this is not the desired behaviour. Therefore, an additional field '_hasVariableLen' is added to the GattAttribute to address the problem. Also, the GattAttribute and GattCharacteristic constructors have been modified to take a boolean that sets '_hasVariableLen'.

NOTE: Changes to this module will cause projects to fail the build stage if changes to the BLE_API are not published first. @rgrover