TransportMessage
A structure that represents a message for transmission between the system and an accessory.
Declaration
struct TransportMessageOverview
The AccessoryTransportSession.EventHandler protocol’s messageReceived(_:completion:) method receives messages of this type from the system. Use the sendMessageToDataProvider(_:) method to send messages from your accessory back to the data provider extension.
Correlate messages with capabilities
The sessionID property identifies the capability session to which the message belongs. The system generates this identifier at feature enrollment time, and the value is fixed while the accessory remains paired through AccessorySetupKit.