From d6fba6a66babd7fd4b4f8d63c553d7e19a4caf1b Mon Sep 17 00:00:00 2001 From: Carlo Parata Date: Fri, 20 Sep 2019 11:44:53 +0200 Subject: [PATCH 1/2] Fix issue on Disconnection event --- src/utility/ATT.cpp | 2 +- src/utility/ATT.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utility/ATT.cpp b/src/utility/ATT.cpp index dfa0838a..c28e24d3 100644 --- a/src/utility/ATT.cpp +++ b/src/utility/ATT.cpp @@ -351,7 +351,7 @@ void ATTClass::handleData(uint16_t connectionHandle, uint8_t dlen, uint8_t data[ } } -void ATTClass::removeConnection(uint8_t handle, uint16_t /*reason*/) +void ATTClass::removeConnection(uint16_t handle, uint8_t /*reason*/) { int peerIndex = -1; int peerCount = 0; diff --git a/src/utility/ATT.h b/src/utility/ATT.h index 45802da5..2d006841 100644 --- a/src/utility/ATT.h +++ b/src/utility/ATT.h @@ -53,7 +53,7 @@ class ATTClass { void handleData(uint16_t connectionHandle, uint8_t dlen, uint8_t data[]); - void removeConnection(uint8_t handle, uint16_t reason); + void removeConnection(uint16_t handle, uint8_t reason); uint16_t connectionHandle(uint8_t addressType, const uint8_t address[6]) const; BLERemoteDevice* device(uint8_t addressType, const uint8_t address[6]) const; From e37e3aae8969768aec14db0f8029c9530ee8109d Mon Sep 17 00:00:00 2001 From: Carlo Parata Date: Wed, 25 Sep 2019 14:51:27 +0200 Subject: [PATCH 2/2] Update README and Library properties --- README.md | 7 +++++++ library.properties | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d6b8fbc..2d575585 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,12 @@ # STM32duinoBLE This library is a fork of ArduinoBLE library to add the support of STBTLE-RF and STBTLE-1S BLE modules. +It was successfully tested with the X-NUCLEO-IDB05A1 expansion board and a NUCLEO-F401RE or NUCLEO-L476RG or +NUCLEO-L053R8, with B-L475E-IOT01A and with STEVAL-MKSBOX1V1. +In order to use this library with STEVAL-MKSBOX1V1, you need to update the firmware of the STBTLE-1S BLE module +mounted on that board as described in the following wiki page: + +https://github.com/stm32duino/wiki/wiki/STM32duinoBLE-with-STEVAL_MKSBOX1V1 You can find the official Pull Request at the following link: @@ -12,6 +18,7 @@ https://github.com/arduino-libraries/ArduinoBLE ## License ``` +Copyright (c) 2019 STMicroelectronics. All rights reserved. Copyright (c) 2019 Arduino SA. All rights reserved. This library is free software; you can redistribute it and/or diff --git a/library.properties b/library.properties index 0f75e882..f63b530a 100644 --- a/library.properties +++ b/library.properties @@ -6,5 +6,5 @@ sentence=Fork of ArduinoBLE library to add the support of STBTLE-RF and STBTLE-1 paragraph=This library supports creating a BLE peripheral and BLE central mode. category=Communication url=https://github.com/stm32duino/STM32duinoBLE -architectures=samd,megaavr,mbed,stm32 +architectures=stm32 includes=ArduinoBLE.h