⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
agtde
Offline
Last seen:6 months 4 hours ago
加入:2020-09-01 21:31
Thermometer Profile

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

PM_Dialog
Offline
Last seen:3 hours 37 min ago
工作人员
加入:2018-02-08 11:03
Hi agtde,

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

agtde
Offline
Last seen:6 months 4 hours ago
加入:2020-09-01 21:31
好的,谢谢!你能

好的,谢谢!你能point me to the documentation of which app layer functions are required and how they are registered?

Thanks, AG

PM_Dialog
Offline
Last seen:3 hours 37 min ago
工作人员
加入:2018-02-08 11:03
Hi agtde,

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