Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrudu authored Mar 8, 2024
1 parent da582dd commit 70e9faf
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 70e9faf

Please sign in to comment.