![](/img/trans.png)
[英]How to detect if user paired with a BLE device using the Android Bluetooth settings?
[英]How to set Bluetooth Device adress and name in android BLE?
我想設置Android Bluetooth LE
設備的設備名稱和地址。
類BluetoothDevice
提供了用於名稱和地址的getter方法,例如
BluetoothDevice device;
device.getName();
device.getAddress();
但是沒有像設備名稱和地址這樣的可見構造方法或設置方法
BluetoothDevice device;
device.setName();
device.setAddress();
請指導如何解決該問題。 謝謝
地址是在生產中分配的STATIC。 您不應該欺騙它。 在廣告包中,您可以設置名稱。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.