Added support for obtaining BLE device name by parsing advertising data.
Fork of BLE_BlueNRG by
btle/inc/btle.h@2:a2b623661316, 2014-07-21 (annotated)
- Committer:
- mridup
- Date:
- Mon Jul 21 08:28:47 2014 +0000
- Revision:
- 2:a2b623661316
- Parent:
- 0:309c845d289d
Latest Changes 21/07
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mridup | 0:309c845d289d | 1 | /* mbed Microcontroller Library |
mridup | 0:309c845d289d | 2 | * Copyright (c) 2006-2013 ARM Limited |
mridup | 0:309c845d289d | 3 | * |
mridup | 0:309c845d289d | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mridup | 0:309c845d289d | 5 | * you may not use this file except in compliance with the License. |
mridup | 0:309c845d289d | 6 | * You may obtain a copy of the License at |
mridup | 0:309c845d289d | 7 | * |
mridup | 0:309c845d289d | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mridup | 0:309c845d289d | 9 | * |
mridup | 0:309c845d289d | 10 | * Unless required by applicable law or agreed to in writing, software |
mridup | 0:309c845d289d | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mridup | 0:309c845d289d | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mridup | 0:309c845d289d | 13 | * See the License for the specific language governing permissions and |
mridup | 0:309c845d289d | 14 | * limitations under the License. |
mridup | 0:309c845d289d | 15 | */ |
mridup | 0:309c845d289d | 16 | |
mridup | 0:309c845d289d | 17 | #ifndef _BTLE_H_ |
mridup | 0:309c845d289d | 18 | #define _BTLE_H_ |
mridup | 0:309c845d289d | 19 | |
mridup | 0:309c845d289d | 20 | |
mridup | 0:309c845d289d | 21 | #ifdef __cplusplus |
mridup | 0:309c845d289d | 22 | extern "C" { |
mridup | 0:309c845d289d | 23 | #endif |
mridup | 0:309c845d289d | 24 | |
mridup | 0:309c845d289d | 25 | #include "stm32l0xx_bluenrg_shield_bsp.h" |
mridup | 0:309c845d289d | 26 | #include "hci.h" |
mridup | 0:309c845d289d | 27 | #include "bluenrg_hci.h" |
mridup | 0:309c845d289d | 28 | #include "hci_internal.h" |
mridup | 0:309c845d289d | 29 | #include "bluenrg_hci_internal.h" |
mridup | 2:a2b623661316 | 30 | #include "gap.h" |
mridup | 2:a2b623661316 | 31 | #include "gatt_service.h" |
mridup | 0:309c845d289d | 32 | #include <stdio.h> |
mridup | 0:309c845d289d | 33 | #include <string.h> |
mridup | 0:309c845d289d | 34 | |
mridup | 0:309c845d289d | 35 | |
mridup | 0:309c845d289d | 36 | void btle_init(void); |
mridup | 0:309c845d289d | 37 | void User_Process(void); |
mridup | 0:309c845d289d | 38 | void setConnectable(void); |
mridup | 0:309c845d289d | 39 | |
mridup | 0:309c845d289d | 40 | |
mridup | 0:309c845d289d | 41 | |
mridup | 0:309c845d289d | 42 | #ifdef __cplusplus |
mridup | 0:309c845d289d | 43 | } |
mridup | 0:309c845d289d | 44 | #endif |
mridup | 0:309c845d289d | 45 | |
mridup | 0:309c845d289d | 46 | #endif |