Bluetooth Logo

Writing an SDK With Core Bluetooth – 17 – Asking Questions

This entry is part 21 of 24 in the series Writing an SDK With Core Bluetooth

We are now ready to have the Central Mode ask a question to one of its Magic 8-Balls.

After we are done with this step, we will be able to run an instance of the app as a Central (on a Mac, iPhone/iPad/iPod, Watch or TV), and an instance of the app as a Peripheral (on a Mac or iPhone/iPad/iPod).

The Central will discover the Peripheral, and display its name in the list. The user will then be able to select the Peripheral, and “ask it a question.”

The Peripheral device will almost immediately display the question.

Read moreWriting an SDK With Core Bluetooth – 17 – Asking Questions

Writing an SDK With Core Bluetooth – 20 – Conclusion

This entry is part 24 of 24 in the series Writing an SDK With Core Bluetooth

We now have a complete, operational SDK and application.

Here is Our Ending Repo Tag.

This application demonstrates Bluetooth on all the current Apple platforms, from one codebase: Mac OS X, iPhone/iPod, iPad, Watch, and TV.

This codebase is compiled into four targets; native Swift-based frameworks that are focused on one (or more) of the above platforms. Currently, the functionality is as barely simple as possible. It just scratches the surface of Core Bluetooth, but does demonstrate a complete system, from a Peripheral, advertising Services, to a Central, scanning for Services, and connecting to Peripherals, in order to use those Services to communicate with the Peripheral.

Read moreWriting an SDK With Core Bluetooth – 20 – Conclusion