How to use libraries - 20706

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LJYe_2922526
Level 5
Level 5
25 likes received 10 likes received 5 likes given

I was browsing through the SDK directories and found source codes for complete implementations of profiles like the HFP and SPP under include/libraries/handsfree_profile and spp_lib. There also seems to be compiled version of those under Wiced-BT/tier2/brcm/libraries/lib/20703/.

Are those intended to be used by us trying to create a custom app?

If so, where are the header files that specifies the user interfaces to the libraries?

Also, why are all the sample projects implementing their own version of the profile while a library is available? 

Thanks.

0 Likes
1 Solution
Anonymous
Not applicable

Example projects in WICED use these libraries. For example snip/bt/spp makes use of spp_lib.a; demo/audio/hci_handsfree makes use of handsfree_profile.a. The makefile of these projects specify the libraries they use.

The source (.c and .h) of these libraries is available under libraries folder.

View solution in original post

3 Replies
Anonymous
Not applicable

Example projects in WICED use these libraries. For example snip/bt/spp makes use of spp_lib.a; demo/audio/hci_handsfree makes use of handsfree_profile.a. The makefile of these projects specify the libraries they use.

The source (.c and .h) of these libraries is available under libraries folder.

I mainly followed the audio gateway example and was a little bit shocked to see there are fully implemented profile libraries.

Just to make sure, for handsfree - audio gateway profile there is no already-implemented library to use, correct?

0 Likes
Anonymous
Not applicable

Yup, there's no library for Audio Gateway implementation.