Android Question Extend BLE Peripheral 2 Enhanced to allow multiple custom primary services

CaptKronos

Active Member
Licensed User
I have used Peter Simpson's excellent BLE Peripheral 2 Enhanced library to simulate a BLE health device with a heart sensor. However, I would now like to add the ability to add a simulation of step counts and the device's battery level. This requires two more custom primary services to be defined, however, the current version of the library seems to only allow one custom primary service to be created. Would it be possible to extend the library to allow multiple custom primary services?
 

Peter Simpson

Expert
Licensed User
Longtime User
Hello,
Not easily, I'll have a look at the code on Wednesday as I'm currently developing a multiple location stock control system for a client and I will not have time too look at the code until then. I'm still testing that library myself, from memory I do not think that it would be a simple task to achieve what you're looking for. Multiple primary services, I've not previously look into that, I'll check on Wednesday.
 
Upvote 0
Top