Previous version which works for my stm32f401 Nucleo board
Fork of X_NUCLEO_IDB0XA1 by
Diff: BlueNRGGattServer.h
- Revision:
- 58:027c65a54097
- Parent:
- 55:0e4db6804c8d
- Child:
- 64:6d7b775c3f6d
--- a/BlueNRGGattServer.h Wed Oct 01 11:47:54 2014 +0000 +++ b/BlueNRGGattServer.h Tue Oct 07 10:13:02 2014 +0000 @@ -1,18 +1,18 @@ /* mbed Microcontroller Library - * Copyright (c) 2006-2013 ARM Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +* Copyright (c) 2006-2013 ARM Limited +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ #ifndef __BLUENRG_GATT_SERVER_H__ #define __BLUENRG_GATT_SERVER_H__ @@ -38,7 +38,7 @@ return m_instance; } - /* Functions that must be implemented from GattServer */ + /* Functions that must be implemented from GattServer */ virtual ble_error_t addService(GattService &); virtual ble_error_t readValue(uint16_t handle, uint8_t buffer[], uint16_t *const lengthP); virtual ble_error_t updateValue(uint16_t, uint8_t[], uint16_t, bool localOnly = false); @@ -58,7 +58,7 @@ std::map<tHalUint16, tHalUint16> bleCharHanldeMap; // 1st argument is characteristic, 2nd argument is service GattCharacteristic *p_characteristics[BLE_TOTAL_CHARACTERISTICS]; tHalUint16 bleCharacteristicHandles[BLE_TOTAL_CHARACTERISTICS]; - + BlueNRGGattServer() { serviceCount = 0; characteristicCount = 0;