addServiceUUID

open fun addServiceUUID(@NonNull serviceUUId: UUID, @NonNull bleDeviceHandler: BleDeviceHandler)

Called to add New BLE Device. To support new Device must Create the specific BleDeviceHandler

Follow this example to support new device :

STWBLEManager.getInstance().addServiceUUID(serviceUUID, new BleDeviceHandler() { public UUID getCharacteristicsUUID() { //Code... } public UUID getServiceUUID() { //Code... } public String getAccessoriesName() { //Code... } public void onCharacteristicUpdated(BluetoothGattCharacteristic characteristic) () { //Code... } });

Parameters

serviceUUId

the service uuid

bleDeviceHandler

the accessory implementation of callback