public abstract class BluetoothUUIDs {
/* UUID SERVICES */
public static final HashMap<String, String> BLE_SERVICE_UUID_NAME;
public static final HashMap <String, String> BLE_SERVICE_UUID_TYPE;
/* UUID ATTRIBUTES */
...
{
/* UUID SERVICES TO NAME */
BLE_SERVICE_UUID_NAME = new HashMap<>();
.....
BLE_SERVICE_UUID_TYPE.put("1800","org.bluetooth.service.generic_access");
...
1条答案
按热度按时间mzmfm0qo1#
我现在是这样实现的。
我不知道这是不是最好的,但这是一种方法。