From 9bf3af9295e8da7feeb5c636092416602924ae31 Mon Sep 17 00:00:00 2001 From: Louis-Guillaume DUBOIS Date: Sat, 10 Jun 2017 20:08:43 +0200 Subject: [PATCH] =?UTF-8?q?Ajoute=20le=20sch=C3=A9ma=20des=20appels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 + img/schema.svg | 382 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 384 insertions(+) create mode 100644 img/schema.svg diff --git a/README.md b/README.md index 2a99e3b..83a2c6e 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ hosted on a given Bluetooth LE device. The Activities communicate with the Service, which in turn interacts with the [Bluetooth LE API][2]. +schema + [1]:http://developer.android.com/reference/android/app/Service.html [2]:https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html diff --git a/img/schema.svg b/img/schema.svg new file mode 100644 index 0000000..bd15d76 --- /dev/null +++ b/img/schema.svg @@ -0,0 +1,382 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + BluetoothLeService + + + + + + + + BluetoothAdapter + + + + + + + + + + + + + + + + + + + + + + + + + + DeviceScanActivity + + + + + + + + + + + + + + + + SimpleDetailActivity + + + + + + + + + + + + + + + + + + + + + isEnabledstartLeScanstopLeScan + + + + + + + + + + + + + mLeScanCallback { onLeScan} + + + + + + + + + + + + + onCreate onResume onPauseonOptionsItemSelectedonListItemClick + + + + + + + + + + + + + initializeconnectgetPrivateServicereadCharacteristicwriteCharacteristicsetCharacteristicNotification + + + + + + + + + + + + + + + + + + + + mGattUpdateReceiver { onReceive} + + + + + + broadcastUpdate + + + + + + CONNECTEDDISCONNECTEDSERVICES_DISCOVEREDSENSOR_VALUE_AVAILABLEWRITABLE_VALUE_AVAILABLE + + + + + + + + + + + + + + + + + + + + startActivity + + + + + + onCreate + + + + + + + + + + + + + onResume onPauseonDestroyonOptionsItemsSelectedonBackPressedonRefreshClickonSendClick + + + + + + + + + + + + + finish + + + + + + + + + + + + + onResume + + + + + + + + + + + + + getRemoteDevice + + + + + + + + BluetoothGatt + + + + + + + + + + + + + connectdiscoverServicesgetServicegetServicesreadCharacteristicsetCharacteristicNotificationwriteCharacteristicwriteDescriptorclosedisconnect + + + + + + + + + + + + + mBluetoothCallback { onConnectionStateChanged onServicesDiscovered onCharacteristicRead onCharacteristicWrite onCharacteristicChanged} + + + + + + + + \ No newline at end of file