可能隐藏(删除)服务机构发展变化risitc ?

⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
uta_lc
Offline
Last seen:1 year 3 weeks ago
Joined:2016-05-03 07:39
可能隐藏(删除)服务机构发展变化risitc ?

Dear DLG support,

We'd love to remove the Service Changed Characterisitc so that phone client app should cache services across a device disconnect/connect cycle. Is it possible?

We are keen to do this to save battery in our application as we have static service on the server. We hope to achieve the goal so that clients can freely and permanently cache all handles found with no restrictions. The server guarantees they will not change during the lifetime of the device.

I'm aware of the issue mentioned here:
https://support.dialog-semiconductor.com/forum/search?term_node_tid_dept...

Do we have any work around to get rid of the presence of the service at all?

Thanks for your help,
uta_lc

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi uta_lc,

Hi uta_lc,

Well the service is by default created but what you can try to hide the service, so by just applying the below instruction:

attmdb_svc_set_permission(GATT_GET_ATT_HANDLE(GATT_IDX_SVC_CHANGED), PERM(SVC_HIDE, ENABLE));

The service will no longer appear to your Smart phone, you can place the instruction in the prf_init_func() function.

Thanks MT_dialog

uta_lc
Offline
Last seen:1 year 3 weeks ago
Joined:2016-05-03 07:39
Thanks MT. Tried and it

Thanks MT. Tried and it worked.