From 8ff3130fbd5724582e3d011cc2e1705bba6ce1e1 Mon Sep 17 00:00:00 2001 From: pw <329803553@qq.com> Date: Wed, 22 Jan 2025 10:39:13 +0800 Subject: [PATCH] Modify readme --- README.md | 4 ++-- doc/README_CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 870c152..4d20f6e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/doc/README_CN.md b/doc/README_CN.md index c6ed2b0..8f5f896 100644 --- a/doc/README_CN.md +++ b/doc/README_CN.md @@ -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