I started out by making the Mac the "central" and the iOS device the "peripheral". The Mac tries to keep a persistent BL connection to the iOS device to write a value whenever the state changes. However, I find that the the iOS device often disconnects.
I can also see an implementation where the iOS app is the central and subscribes to a characteristic of the Mac peripheral. Here's my question - for those of you with more Core Bluetooth experience, based on my use case, which should be the central and which should be the peripheral?