File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ extern "C" {
4848
4949/** @brief Queued Writes module event types. */
5050enum ble_qwr_evt_type {
51- /** Error event */
52- BLE_QWR_EVT_ERROR ,
5351 /** Event that indicates that an execute write command was received for a registered handle
5452 * and that the received data was actually written and is now ready.
5553 */
@@ -58,17 +56,15 @@ enum ble_qwr_evt_type {
5856 * and that the write request must now be accepted or rejected.
5957 */
6058 BLE_QWR_EVT_AUTH_REQUEST ,
59+ /** Error event */
60+ BLE_QWR_EVT_ERROR ,
6161};
6262
6363/** @brief Queued Writes module events. */
6464struct ble_qwr_evt {
6565 /** Type of the event. */
6666 enum ble_qwr_evt_type evt_type ;
6767 union {
68- /** @ref BLE_QWR_EVT_ERROR event data. */
69- struct {
70- uint32_t reason ;
71- } error ;
7268 /** @ref BLE_QWR_EVT_EXECUTE_WRITE event data. */
7369 struct {
7470 /** Handle of the attribute to which the event relates. */
@@ -79,6 +75,11 @@ struct ble_qwr_evt {
7975 /** Handle of the attribute to which the event relates. */
8076 uint16_t attr_handle ;
8177 } auth_req ;
78+ /** @ref BLE_QWR_EVT_ERROR event data. */
79+ struct {
80+ /** Error reason. */
81+ uint32_t reason ;
82+ } error ;
8283 };
8384};
8485
You can’t perform that action at this time.
0 commit comments