I have a little hw with a BLE module that communicates with an iOS device.
I would like to perform a discovery using iBeacon (so using iBeacon advertisement packets) and - obviously - connection (and data exchange) using CoreBluetooth, but there are some issues.
Before describing the issues, I have to tell you that I need to provide these information in discovery phase:
Serial number (needed for internal purposes) - 6 characters and 10 numbers.
A "hw version" to specify what type of product it is (each product uses a different protocol).
The problem I have is basically how to perform the discovery phase and then connect to a particular discovered object:
A. In the iBeacon adv packet, I should use UUID field for serial number and major/minor field for the hw version, but if I do so, the devices will be basically not discoverable (iBeacon SDK for iOS needs to know the UUID to look for before starting the monitoring phase, so it cannot be different for every device).
B. In iOS, the iBeacon features are available through CoreLocation libraries, the standard BLE features are instead available through CoreBluetooth. If I use an iBeacon advertisement packet, the objects discovered by CoreBluetooth libraries do not see any information of the package (so, the problem is: "How do I know which is the object with serial XYZ?").