BLE Headers in Bootloadable project | Cypress Semiconductor
BLE Headers in Bootloadable project
I have an otherwise working workspace with a bootloader and bootloadable project for OTA. The process of identifying how to use headers in the bootloadable project has been very confusing.
I am attempting to implement dyanamic broadcasting to write data to the advertising packet. This requires the use of CyBle_GapUpdateAdvData. As far as I can see, the only way to use these things is to manually copy the declaration from the header, because I get errors about duplicate declarations when including the correct header such as BLE_StackGap.h in a bootloadable project.
However, if I add the declaration to OTA_mandatory.h manually, I get "undefined reference to `CyBle_GapUpdateAdvData'" when linking.
What is the correct method of using CyBle_GapUpdateAdvData in a Bootloadable?