文档
测试
POST

说明 / 示例

```JAVA if (bevice == null) { bevice = bleDevice; if (bevice.getName().indexOf("Furi") != -1) { Log.d("11111", "onScanning: " + "-----4"); instance.notify(bleDevice, "0000ffe0-0000-1000-8000-00805f9b34fb", "0000ffe1-0000-1000-8000-00805f9b34fb", bleNotifyCallback); } else if (bevice.getName().indexOf("FAYA") != -1) { Log.d("11111", "onScanning: " + "-----5"); // String uuid_service = "49535343-fe7d-4ae5-8fa9-9fafd205e455"; // String uuid_notift = "49535343-1e4d-4bd9-ba61-23c647249616"; //私有 String uuid_service1 = "49535343-fe7d-4ae5-8fa9-9fafd205e455"; String uuid_notift1 = "49535343-1e4d-4bd9-ba61-23c647249616"; //公共 String uuid_service2 = "0000ffe0-0000-1000-8000-00805f9b34fb"; String uuid_notift2 = "0000ffe1-0000-1000-8000-00805f9b34fb"; String uuid_service = ""; String uuid_notift = ""; for (int j = 0; j < bluetoothGatt.getServices().size(); j++) { UUID uuid = bluetoothGatt.getServices().get(j).getUuid(); Log.d("11111", "uuid: " + uuid); if ((uuid + "").equals(uuid_service1)) { uuid_service = uuid_service1; uuid_notift = uuid_notift1; break; } else if ((uuid + "").equals(uuid_service2)) { uuid_service = uuid_service2; uuid_notift = uuid_notift2; break; } } if (!uuid_service.isEmpty()) { instance.notify(bleDevice, uuid_service, uuid_notift, bleNotifyCallback1); } } } ```