Reputation: 495
Maybe I'm not phrasing it correctly in the search engines to find what I'm looking for. But what I need is the Core Bluetooth (Swift 3) code that will allow my app the listen for a button press on a connected peripheral. And then the code that handles that event.
Upvotes: 3
Views: 2855
Reputation: 3282
You may want to take a look to this question:
There the answer shows most of the Swift 3 code that you may need to make BLE to work. But keep in mind that you need to provide the UUIDs, etc., and you will need knowledge of what kind of data your peripheral is giving to you. Also, you need to know the characteristic's UUID that you want listen for.
Upvotes: 2