Hi,
I have use the src of BlePeripheral2.java to try to make a BlePeripheral4.java for use a Nordic UART peripheral
in the java i have change :
BluetoothGattService service = new BluetoothGattService(longUUID("0001"), BluetoothGattService.SERVICE_TYPE_PRIMARY);
charRead = new BluetoothGattCharacteristic(longUUID("0003"), BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_NOTIFY, BluetoothGattCharacteristic.PERMISSION_READ);
charWrite = new BluetoothGattCharacteristic(longUUID("0002"), BluetoothGattCharacteristic.PROPERTY_WRITE, BluetoothGattCharacteristic.PERMISSION_WRITE);
charRead.addDescriptor(new BluetoothGattDescriptor(longUUID("2803"), BluetoothGattDescriptor.PERMISSION_READ | BluetoothGattDescriptor.PERMISSION_WRITE));
and in
java.util.UUID longUUID(String shortName)
return UUID.fromString("6e40" + shortName + "-b5a3-f393-e0a9-e50e24dcca9e");
I call the new library the start i ok but I don t see the peripheral NordicUart
Have you a idea
best regards
Thanks