Hi,
I'm trying to implement a device with the health thermometer service. The functions in htpt_task.c and htpt.c get compiled but no matter which options I enable they never seem to get registered in the BLE stack. Is there an example or documentation how to implement the profile?
Thanks,
AG
Device:
Hi agtde,
Thanks for your question online and for your interest in out TINY module. The HTPT profile exists in the SDK as a profile ( \sdk\ble_stack\profiles\htp\htpt ) but the application layer is not implemented, so you should implement it in your side.
I would recommend you to take the BASS profile as a reference. The BASS profile is in sdk\ble_stack\profiles\bas\bass SDK path and the application layer in sdk\app_modules\src\app_bass.
The app_XXX.c and app_XXX_task.c files will include all the implementation and the message handling for the profile level implementation.
Thanks, PM_Dialog
好的,谢谢!你能point me to the documentation of which app layer functions are required and how they are registered?
Thanks, AG
Hi agtde,
There is not any related documentation, but you could take as reference the already implemented battery profile.
The general rule for creating those two files is that app_bass.c contains all the initiating functions (void functions that triggers an action) and the app_bass_task.c contains the handler functions that are triggered when the action is over and the application should act accordingly.
Thanks, PM_Dialog