Skip to content

Commit 70e9faf

Browse files
authored
Update README.md
1 parent da582dd commit 70e9faf

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,31 @@ Snippet code to use to retrieve the IMEI of the device:
255255
}
256256
```
257257

258+
Snippet code to use to retrieve the Bluetooth Mac Address of the device:
259+
```java
260+
private void getBTMacAddress(Context context)
261+
{
262+
DIHelper.getBtMacAddress(context, new IDIResultCallbacks() {
263+
@Override
264+
public void onSuccess(String message) {
265+
// We've got the bt mac address
266+
String myBluetoothMacAddress = message;
267+
}
268+
269+
@Override
270+
public void onError(String message) {
271+
// An error occurred
272+
}
273+
274+
@Override
275+
public void onDebugStatus(String message) {
276+
// You can use this method to get verbose information
277+
// about what's happening behind the curtain
278+
}
279+
});
280+
}
281+
```
282+
258283

259284
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.
260285

0 commit comments

Comments
 (0)