test code 123
Fork of LinkNode-Test by
nRF51822_Science_Journal/BLE_API/ble/GattServerEvents.h@0:1ad0e04b1bc5, 2016-09-01 (annotated)
- Committer:
- youkee
- Date:
- Thu Sep 01 05:14:03 2016 +0000
- Revision:
- 0:1ad0e04b1bc5
change internal time from 1s to 200ms
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
youkee | 0:1ad0e04b1bc5 | 1 | /* mbed Microcontroller Library |
youkee | 0:1ad0e04b1bc5 | 2 | * Copyright (c) 2006-2013 ARM Limited |
youkee | 0:1ad0e04b1bc5 | 3 | * |
youkee | 0:1ad0e04b1bc5 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
youkee | 0:1ad0e04b1bc5 | 5 | * you may not use this file except in compliance with the License. |
youkee | 0:1ad0e04b1bc5 | 6 | * You may obtain a copy of the License at |
youkee | 0:1ad0e04b1bc5 | 7 | * |
youkee | 0:1ad0e04b1bc5 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
youkee | 0:1ad0e04b1bc5 | 9 | * |
youkee | 0:1ad0e04b1bc5 | 10 | * Unless required by applicable law or agreed to in writing, software |
youkee | 0:1ad0e04b1bc5 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
youkee | 0:1ad0e04b1bc5 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
youkee | 0:1ad0e04b1bc5 | 13 | * See the License for the specific language governing permissions and |
youkee | 0:1ad0e04b1bc5 | 14 | * limitations under the License. |
youkee | 0:1ad0e04b1bc5 | 15 | */ |
youkee | 0:1ad0e04b1bc5 | 16 | |
youkee | 0:1ad0e04b1bc5 | 17 | #ifndef __GATT_SERVER_EVENTS_H__ |
youkee | 0:1ad0e04b1bc5 | 18 | #define __GATT_SERVER_EVENTS_H__ |
youkee | 0:1ad0e04b1bc5 | 19 | |
youkee | 0:1ad0e04b1bc5 | 20 | /*! |
youkee | 0:1ad0e04b1bc5 | 21 | \brief |
youkee | 0:1ad0e04b1bc5 | 22 | The base class used to abstract away the callback events that can be |
youkee | 0:1ad0e04b1bc5 | 23 | triggered with the GATT Server. |
youkee | 0:1ad0e04b1bc5 | 24 | */ |
youkee | 0:1ad0e04b1bc5 | 25 | class GattServerEvents |
youkee | 0:1ad0e04b1bc5 | 26 | { |
youkee | 0:1ad0e04b1bc5 | 27 | public: |
youkee | 0:1ad0e04b1bc5 | 28 | typedef enum gattEvent_e { |
youkee | 0:1ad0e04b1bc5 | 29 | GATT_EVENT_DATA_SENT = 1, /**< Fired when a message was successfully sent out (notify only?) */ |
youkee | 0:1ad0e04b1bc5 | 30 | GATT_EVENT_DATA_WRITTEN = 2, /**< Client wrote data to the server (separate into char and descriptor writes?) */ |
youkee | 0:1ad0e04b1bc5 | 31 | GATT_EVENT_UPDATES_ENABLED = 3, /**< Notify/Indicate enabled in CCCD. */ |
youkee | 0:1ad0e04b1bc5 | 32 | GATT_EVENT_UPDATES_DISABLED = 4, /**< Notify/Indicate disabled in CCCD. */ |
youkee | 0:1ad0e04b1bc5 | 33 | GATT_EVENT_CONFIRMATION_RECEIVED = 5, /**< Response received from Indicate message. */ |
youkee | 0:1ad0e04b1bc5 | 34 | GATT_EVENT_READ_AUTHORIZATION_REQ = 6, /**< Request application to authorize read. */ |
youkee | 0:1ad0e04b1bc5 | 35 | GATT_EVENT_WRITE_AUTHORIZATION_REQ = 7, /**< Request application to authorize write. */ |
youkee | 0:1ad0e04b1bc5 | 36 | } gattEvent_t; |
youkee | 0:1ad0e04b1bc5 | 37 | }; |
youkee | 0:1ad0e04b1bc5 | 38 | |
youkee | 0:1ad0e04b1bc5 | 39 | #endif // ifndef __GATT_SERVER_EVENTS_H__ |