Create multiple characteristics in a single BLE Service?

Learn MoreFAQsTutorials

6 posts / 0 new
Last post
mahmed106
Offline
Last seen: 14 hours 21 min ago
Joined: 2019-05-03 17:28
Create multiple characteristics in a single BLE Service?

Hi dialog

I want to create multiple characteristics in a single service, right now i am working on pxp reporter and added my custom service from the dialog website tutorial. Its working great, but now i want to add more characteristics but cannot find an example code or tutorial.

Thanks

Device: 
PM_Dialog
Offline
Last seen: 20 hours 9 min ago
Staff
Joined: 2018-02-08 11:03
Hi mahmed106,

Hi mahmed106,

Please check the SW Example: DA1468x BLE customer service software example from our support website. This example includes 2 custom services.  The custom service 1 includes 3 characteristic declarations. Have a look at my_service_2[] structure. You can add more than 3 characteristics.

Also, you could check Custom Bluetooth Low Energy Profile as well.

Thanks, PM_Dialog

mahmed106
Offline
Last seen: 14 hours 21 min ago
Joined: 2019-05-03 17:28
I have tried this example

I have tried this example code. The services and characteristics are showing in the mobile via BLE, but i am not able to understand that how i send the data to the mobile, when i do a read request.

Where in the main application code i send the data and how. Please eleborate.

Thanks

PM_Dialog
Offline
Last seen: 20 hours 9 min ago
Staff
Joined: 2018-02-08 11:03
Hi mahmed106,

Hi mahmed106,

If I understood correctly, your requirement is to create a notifiable characteristic and send data to the mobile phone over notifications? Is this correct?

Thanks, PM_Dialog

mahmed106
Offline
Last seen: 14 hours 21 min ago
Joined: 2019-05-03 17:28
Yes , Half part is solved as

Yes , Half part is solved as i send data as read callback, It great . Thanks to your code (y)

Now i want to work on notifiable characteristics .

PM_Dialog
Offline
Last seen: 20 hours 9 min ago
Staff
Joined: 2018-02-08 11:03
Hi mahmed106,

Hi mahmed106,

You should create the characteristics as the example but enable the notifications property.

Thanks, PM_Dialog