Previous version which works for my stm32f401 Nucleo board
Fork of X_NUCLEO_IDB0XA1 by
Diff: BlueNRG_HCI/includes/bluenrg_gatt_aci.h
- Revision:
- 128:46ae62a90136
- Parent:
- 126:32039585a969
diff -r 66ab06ee67e0 -r 46ae62a90136 BlueNRG_HCI/includes/bluenrg_gatt_aci.h --- a/BlueNRG_HCI/includes/bluenrg_gatt_aci.h Thu Sep 17 10:32:34 2015 +0200 +++ b/BlueNRG_HCI/includes/bluenrg_gatt_aci.h Tue Oct 06 12:12:37 2015 +0200 @@ -719,8 +719,6 @@ */ tBleStatus aci_gatt_read_handle_value(uint16_t attr_handle, uint16_t data_len, uint16_t *data_len_out_p, uint8_t *data); -#if BLUENRG_MS -///@cond BLUENRG_MS /** * @brief Reads the value of the attribute handle specified from the local GATT database, starting from a given offset. * @param attr_handle Handle of the attribute to read @@ -733,9 +731,7 @@ * attribute (in data_len_out_p). * @return Value indicating success or error code. */ -tBleStatus aci_gatt_read_handle_value_offset(uint16_t attr_handle, uint8_t offset, uint16_t data_len, uint16_t *data_len_out_p, uint8_t *data); -///@endcond -#endif +tBleStatus aci_gatt_read_handle_value_offset_IDB05A1(uint16_t attr_handle, uint8_t offset, uint16_t data_len, uint16_t *data_len_out_p, uint8_t *data); /** * @} @@ -750,20 +746,24 @@ /** * This event is raised to the application by the GATT server when a client modifies any attribute on the server, - * if event is enabled (see @ref Gatt_Event_Mask "Gatt Event Mask"). See @ref _evt_gatt_attr_modified. + * if event is enabled (see @ref Gatt_Event_Mask "Gatt Event Mask"). + * See @ref _evt_gatt_attr_modified_IDB04A1 or @ref _evt_gatt_attr_modified__IDB05A1. */ #define EVT_BLUE_GATT_ATTRIBUTE_MODIFIED (0x0C01) -typedef __packed struct _evt_gatt_attr_modified{ +typedef __packed struct _evt_gatt_attr_modified_IDB05A1{ uint16_t conn_handle; /**< The connection handle which modified the attribute. */ uint16_t attr_handle; /**< Handle of the attribute that was modified. */ uint8_t data_length; /**< The length of the data */ -#if BLUENRG_MS -///@cond BLUENRG_MS uint16_t offset; /**< Offset from which the write has been performed by the peer device */ -///@endcond -#endif uint8_t att_data[VARIABLE_SIZE]; /**< The new value (length is data_length) */ -} PACKED evt_gatt_attr_modified; +} PACKED evt_gatt_attr_modified_IDB05A1; + +typedef __packed struct _evt_gatt_attr_modified_IDB04A1{ + uint16_t conn_handle; /**< The connection handle which modified the attribute. */ + uint16_t attr_handle; /**< Handle of the attribute that was modified. */ + uint8_t data_length; /**< The length of the data */ + uint8_t att_data[VARIABLE_SIZE]; /**< The new value (length is data_length) */ +} PACKED evt_gatt_attr_modified_IDB04A1; /** * This event is generated by the client/server to the application on a GATT timeout (30 seconds).