2023-02-14 11:07 PM
I successfully implemented a service with different characteristics. However on the android side when I call getDescriptor()
descriptor =characteristic.getDescriptor(UUID.fromString(CLIENT_CHARACTERISTIC_CONFIG));
CLIENT_CHARACTERISTIC_CONFIG = "00002902-0000-1000-8000-00805f9b34fb";
It always returns null. I need this to set the notify command to be true. In the ST BLE Toolbox, this works perfectly. So in principle, this should be able to be called. It seems that I missed a setting in CubeMX.
Solved! Go to Solution.
2023-02-16 11:25 AM
I found probably why UUID 2902 is not callable. aci_gatt_add_char_desc() which in my opinion add the descriptor (UUID 2902) is never called. Hence I opened a new threat to this routine (https://community.st.com/s/question/0D53W000028ScADSA0/how-to-use-acigattaddchardesc-for-stm32wb-ble), as I could not find any documentation in the manual.
2023-02-15 06:20 AM
What languaje is this? is that code from your ST BLE mcu?
2023-02-15 07:38 AM
This is java on the android side. I could not call the given UUID from MCU. Hence I suppose that I missed something in CubeMx
2023-02-16 11:25 AM
I found probably why UUID 2902 is not callable. aci_gatt_add_char_desc() which in my opinion add the descriptor (UUID 2902) is never called. Hence I opened a new threat to this routine (https://community.st.com/s/question/0D53W000028ScADSA0/how-to-use-acigattaddchardesc-for-stm32wb-ble), as I could not find any documentation in the manual.