ITCB_Observer_Peripheral_Protocol
public protocol ITCB_Observer_Peripheral_Protocol : ITCB_Observer_Protocol
This is an observer specialization for Peripheral instances.
All members are required.
-
This is called when a Central asks a Peripheral a question.
This may not be called in the main thread.
Declaration
Swift
func questionAskedByDevice(_ device: ITCB_Device_Central_Protocol, question: String)
Parameters
device
The Central device that provided the question.
question
The question that was asked by the Central.
-
This is called when a Peripheral successfully answers a Central’s question.
This may not be called in the main thread.
Declaration
Swift
func answerSentToDevice(_ device: ITCB_Device_Central_Protocol, answer: String, toQuestion: String)
Parameters
device
The Central device that provided the question.
answer
The answer that was sent to the Central.
toQuestion
The question that was asked by the Central.