Publishes a service and any of its associated characteristics and characteristic descriptors to the local GATT database.
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 4.0+
- Core Bluetooth
The service you want to publish.
When you add a service to the database, the peripheral manager calls the
peripheral method of its delegate object. If the service contains any included services, you must first publish them.