add Service UUID
open fun addServiceUUID(@NonNull serviceUUId: UUID, @NonNull bleDeviceHandler: BleDeviceHandler)
Content copied to clipboard
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
service UUId
the service uuid
ble Device Handler
the accessory implementation of callback