From 70e9fafa887bc20ae7ddc75fd8af0a4e6490d9b3 Mon Sep 17 00:00:00 2001 From: Trudu Laurent Date: Fri, 8 Mar 2024 13:46:30 +0100 Subject: [PATCH] Update README.md --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index f99ecd4..7d06e06 100644 --- a/README.md +++ b/README.md @@ -255,6 +255,31 @@ Snippet code to use to retrieve the IMEI of the device: } ``` +Snippet code to use to retrieve the Bluetooth Mac Address of the device: +```java + private void getBTMacAddress(Context context) + { + DIHelper.getBtMacAddress(context, new IDIResultCallbacks() { + @Override + public void onSuccess(String message) { + // We've got the bt mac address + String myBluetoothMacAddress = message; + } + + @Override + public void onError(String message) { + // An error occurred + } + + @Override + public void onDebugStatus(String message) { + // You can use this method to get verbose information + // about what's happening behind the curtain + } + }); + } +``` + As the previous methods are asynchronous, if you need both information, it is strongly recommended to call the second request inside the onSuccess or onError of the first request.