Hi,
I'm learning the ble example, named ble_app_peripheral. When running the hex image, from the cellphone app, such as Lightblue, it displays there are 2 services. When i enable bass service, still showing 2 services ,but actually there are 3 services.
How to correct it?
Best regards
Fei
Device:
Hi feitian0409,
If I am not mistaken, you are trying to include the BASS profile in the ble_app_peripheral SDK5.0.4 example, aren’t you? The prox_reporter example of the SDK includes the Battery Service. Please check this example
Thanks, PM_Dialog
Hi,
有一个错误,也许我don't express clearly.
I have enable the BASS profile successfully, and i can use the cellphone app "LightBlue" to see some informations.
But before and after that, the cellphone app still show two services, although there are actually three.
Please browse the attachment .
Best Regards,
Fei
Hi feitian0409,
My apologies but now I understood which your issue is. Alright, you should include the BASS into the advertising data. The default advertising data in the ble_app_peripherals example are the following:
You should add the Battery service and modify them as follow:
Please let me know if this is working fine.
Thanks, PM_Dialog
Hi,
Now it is working fine. Thanks a lot.
Best Regards,
Fei
Hi feitian0409,
Glad that is working and thanks for accepting my answer. If you have any other follow up question, please feel free to create a new forum thread.
Thanks, PM_Dialog