Skip to content

Commit

Permalink
Modify readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ficat committed Jan 22, 2025
1 parent c0beb42 commit 8ff3130
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ On API23+ or higher devices, scan requires some permissions, so ensure all BLE p
bleManager.startScan(new BleScanCallback() {
@Override
public void onLeScan(BleDevice device, int rssi, byte[] scanRecord) {
String name = device.name;
String address = device.address;
String name = device.getName();
String address = device.getAddress();
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions doc/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ dependencies {
bleManager.startScan(new BleScanCallback() {
@Override
public void onLeScan(BleDevice device, int rssi, byte[] scanRecord) {
String name = device.name;
String address = device.address;
String name = device.getName();
String address = device.getAddress();
}

@Override
Expand Down

0 comments on commit 8ff3130

Please sign in to comment.