NordicSemiconductor / IOS-DFU-Library

OTA DFU Library for Mac and iOS, compatible with nRF5x SoCs
http://www.nordicsemi.com
BSD 3-Clause "New" or "Revised" License
524 stars 214 forks source link

Change DFU Service UUID #121

Closed rahul-sciter closed 7 years ago

rahul-sciter commented 7 years ago

I have multiple bluetooth devices which have different DFU Service UUID. How can i change DFU Service UUID runtime using iOS DFU Library.

philips77 commented 7 years ago

Hi, currently it is not possible in iOS DFU library. May I ask why did you decide to have multiple UUIDs for DFU?

rahul-sciter commented 7 years ago

We have developed multiple hardware each have different UUID for DFU Service. So I have developed one application which support all bluetooth devices. So I want to integrate firmware upgrade for all bluetooth devices. So if user select device for firmware upgrade based on that i need to scan DFU Device.

rahul-sciter commented 7 years ago

In android library you have provided one flag EXTRA_CUSTOM_UUIDS_FOR_LEGACY_DFU on that bases your android library works for multiple DFU Service UUID.

rahul-sciter commented 7 years ago

In Android library in this class UuidHelper.java there is one function UuidHelper.assignCustomUuids(intent); by calling it we can assign UUID from our application. Is this possible in iOS Library?

rahul-sciter commented 7 years ago

Can anyone answer me on this?

mostafaberg commented 7 years ago

@rahul-sciter Sorry for the late response, right now it's not officially supported on the iOS library, but if you want to overwrite it yourself that should be ok, if you want to modify it at runtime it's just a matter of adding your own initializer that takes in a custom UUID for the service, it's hard to tell the exact solution without seeing your use case and code, but that should be the way to do it

mostafaberg commented 7 years ago

@rahul-sciter Any updates on the issue ? have you got things working or do you require help ?