BLE - More efficient design when lots of Bluetooth devices present. Stops discovery of BLE services when the correct object has been found. Orders objects found by distance so the closest gets scanned first. Removed for loops in favour of NSPredicates. Used pragmas and arranged methods to fit into pragmas. Added a connectAttempt variable to the BLEOBject to stop the device continuously connecting and failing which makes the user wait.
BLE - More efficient design when lots of Bluetooth devices present. Stops discovery of BLE services when the correct object has been found. Orders objects found by distance so the closest gets scanned first. Removed for loops in favour of NSPredicates. Used pragmas and arranged methods to fit into pragmas. Added a connectAttempt variable to the BLEOBject to stop the device continuously connecting and failing which makes the user wait.

perusworld/BleCommC,perusworld/BleCommC