The 128 bit mode is set in the configuration dialog for the BLE copmponent.
Hi Hli, and many thanks for responding quickly.
I'm afraid I can't find the option to set this. To clarify, I have the BLE set as Custom, Client, Central and am trying to define a UUID for use in a read request, to read a custom service on a server using a 128bit UUID.
I'm using PSoC Creator 3.3.
I've even go as far as adding a Custom Descriptor (with a 128 UUID) to the Generic Attribute Service to try and force the software to #define GATT_SUPPORT_128_BIT_UUID, but with no luck.
Following your comment, I also went back and checked my Server code, and even though this uses 128 UUID's the #define is missing.
Could you please be more specific about where you feel this setting is enabled in the BLE configuration dialog.
When you define your custom service, there is an option set the UUID length. So you should define a custom service that matches the one you are talking to, and use its methods.
Thanks for looking at this again. By this I guess you mean that when I click on the Custom Service under the "Profiles" tab, there is a box to enter a UUID on the right with a pull down to the right allowing 16-bit, 32-bit or 128-bit UUID's. My custom service does have a 128-bit UUID, but this doesn't result in GATT_SUPPORT_128_BIT_UUID being #defined in BLEStackGatt.h. This means that I am unable to assign a 128-bit value to a variable of type CYBLE_UUID_T. Perhaps this is a bug in PSoC Creator 3.3. I'll flag it as an issue.
In the meantime I have solved my problem by migrating to using CyBle_GattcReadCharacteristicValue which requires the handle of the service rather than the UUID, thus avoiding the problem.
Once again, thanks for your contribution.