From 86f3836d5d862d5f5c35d9c81cbceba459ebd062 Mon Sep 17 00:00:00 2001 From: Foti Dim Date: Fri, 12 Jul 2024 09:24:27 +0200 Subject: [PATCH] Update readme and changelog --- CHANGELOG.md | 6 ++++-- README.md | 10 ++++++---- pubspec.yaml | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 225451b..1695bfb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ -## 0.10.1 +## 0.11.0 +* Unify UUID format across all platforms, 128-bit lowercase +* Add BleUUID utility methods for UUID parsing * Improve Android error handling -* Fix: Android disconnection events were sometimes missed +* Fix Android disconnection events sometimes missed * Improve cleanup after disconnection on Apple and Android ## 0.10.0 diff --git a/README.md b/README.md index 12a511a..8bd952d 100644 --- a/README.md +++ b/README.md @@ -265,9 +265,11 @@ UniversalBle.timeout = null; All characteristic and service UUIDs will be returned in lowercase and in 128 bit format, across all platforms. e.g. `0000180a-0000-1000-8000-00805f9b34fb` -When passing a UUID you can pass it in any character case or format (long/short) you want. +When passing a UUID you can pass it in any character case or format (long/short) you want. The plugin will take care of conversions. -You can use `BleUuid.parse()` to convert a string to 128 bit UUID format. For example: +### Utility methods + +`BleUuid.parse()` converts a string to 128 bit UUID format: ```dart BleUuid.parse("180A"); // "0000180a-0000-1000-8000-00805f9b34fb" @@ -275,13 +277,13 @@ BleUuid.parse("180A"); // "0000180a-0000-1000-8000-00805f9b34fb" BleUuid.parse("0000180A-0000-1000-8000-00805F9B34FB"); // "0000180a-0000-1000-8000-00805f9b34fb" ``` -or `BleUuid.extend()` to create a valid 128 bit Bluetooth UUID from short (16 or 32 bit) encoding. For example: +`BleUuid.extend()` creates a 128 bit Bluetooth UUID from short (16 or 32 bit) format: ```dart BleUuid.extend(0x180A); // "0000180a-0000-1000-8000-00805f9b34fb" ``` -or `BleUuid.equals()` to compare two UUIDs. For example: +`BleUuid.equals()` compares two UUIDs: ```dart BleUuid.equals("180a","0000180A-0000-1000-8000-00805F9B34FB"); // true diff --git a/pubspec.yaml b/pubspec.yaml index f42a167..c889613 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: universal_ble description: A cross-platform (Android/iOS/macOS/Windows/Linux/Web) Bluetooth Low Energy (BLE) plugin for Flutter -version: 0.10.1 +version: 0.11.0 homepage: https://navideck.com repository: https://github.com/Navideck/universal_ble issue_tracker: https://github.com/Navideck/universal_ble/issues