From 3fbd2e24223eb1d2308c727488761a68a81f059f Mon Sep 17 00:00:00 2001 From: Foti Dim Date: Thu, 28 Mar 2024 09:48:50 +0100 Subject: [PATCH] Add info about discovering services --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index c2828b0..41754fb 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,8 @@ UniversalBle.onConnectionChanged = (String deviceId, BleConnectionState state) { ### Discovering Services +After establishing a connection, you need to discover services. This method will discover all services and their characteristics. + ```dart // Discover services of a specific device UniversalBle.discoverServices(deviceId); @@ -145,6 +147,8 @@ UniversalBle.discoverServices(deviceId); ### Reading & Writing data +You need to first [discover services](#discovering-services) before you are able to read and write to characteristics. + ```dart // Read data from a characteristic UniversalBle.readValue(deviceId, serviceId, characteristicId);