Hi all,
当doing BLE training 03 of custom profile gatt example, step 13, after building the project
the Keil compiler complains about 'undefined' reference to &att_decl_char?
Where does this declaration come from??
Couldn't find any reference in the project.
我怎样才能解决这个问题呢?
And is there a full example available to have a central device getting notified by the peripheral
device of a button state?
Any help I will appreciate!
MV
Device:
Hi BlueSDK18,
Be aware that the tutorials are created using an older SDK (5.0.3) and the latest SDK version that you should be working with is the 5.0.4. There are minor changes in the custom profile implementation between the two SDKs but in the end they are quite the same (most of the changes are file names and organization of the SDK). So regarding the variable that you have requested should be located in the user_custs1_def.c file in SDK 5.0.4 or in the user_custs_config.h file in the 5.0.3 and holds the tag of the characteristic declaration. Regarding the full example that you have requested, yes there is a full example included in the SDK where you can connect from a BLE generic application to the 580 peripheral, enable the notifications and have the peripheral report dummy values, there is also a place holder for a notifyable characteristic (called button status) where you can notify the central for for the status of the button.
Thanks MT_dialog
Hello MT_dialog,
Thanks for your answer! Is this example the ble_app_peripheral project?
I think yes.
Hi BlueSDK18,
You mean if the project base of the "Building Custom Profiles" tutorial is the SDK 5.0.3 ble_app_peripheral ? Yes, this is also mentioned in the page of the tutorial.
Thanks MT_dialog