In the BLE100 app, I'm able to turn on/off the red LED, but the Capsense is not working. When I enable "Notify" the "Capsense value" becomes "No Touch", but the app doesn't show values when I slide the finger in the sensor. However, the Capsense works with the Cysmart app.
The only changes I made were in the PSoCCapSenseLedService.java file, to be able to search for devices and discover services and characteristics.
I checked by running the Github Source code and by changing the UUIDs as provided by PSoC Creator. Yes, what you said is true, the LED works, but the Capsense Values aren't getting updated. I checked the code and here is the solution. Change the following function in PSoCCapSenseLedService.java file:
@Override public void onCharacteristicChanged(BluetoothGatt gatt,
// In this case, the only notification the apps gets is the CapSense value. // If the application had additional notifications we could // use a switch statement here to operate on each one separately.
// Notify the main activity that new data is available broadcastUpdate(ACTION_DATA_RECEIVED);
So the UUID stored on GATT Database is converted to lower case and the one you provide in the java code if it is in upper case, the .equals() function returns false and hence it doesn't enter the if condition and update the capsense value. Just change.equals() to.equalsIgnoreCase() as highlighted in bold and it will work.