簡體   English   中英

如何在android BLE中設置藍牙設備地址和名稱?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM