Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HC_SR04_Ultrasonic_Library Servo mbed
Fork of FIP_REV1 by
btle_test.cpp
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2006-2013 ARM Limited 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 /* 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif*/ 00020 #if 0 00021 #include "btle.h" 00022 00023 #include "hw/Gap.h" 00024 #include "hw/GattServer.h" 00025 #include "hw/BLEDevice.h" 00026 00027 /* 00028 #ifdef __cplusplus 00029 } 00030 #endif*/ 00031 #include "mbed.h" 00032 #include "blecommon.h" 00033 00034 #include "blueNRGGap.h" 00035 #include "blueNRGGattServer.h" 00036 00037 00038 /************************************************************************* 00039 ! 00040 \brief 00041 00042 00043 *************************************************************************/ 00044 void test_function(void); 00045 00046 void test_function(void) 00047 { 00048 //btle_init(); 00049 00050 } 00051 00052 class BTLE_Test //: public BLEDeviceInstanceBase 00053 { 00054 public: 00055 BTLE_Test(void); 00056 virtual ~BTLE_Test(void); 00057 void Init(void); 00058 00059 /*virtual Gap& getGap() { return blueNRGGap::getInstance(); }; 00060 virtual GattServer& getGattServer() { return blueNRGGattServer::getInstance(); }; 00061 virtual ble_error_t init(void); 00062 virtual ble_error_t reset(void); 00063 virtual void waitForEvent(void); */ 00064 }; 00065 00066 void BTLE_Test::Init(void) { 00067 //btle_init(); 00068 } 00069 00070 #endif
Generated on Tue Jul 12 2022 21:41:59 by
1.7.2
