ITCB_Device_Peripheral_Protocol

public protocol ITCB_Device_Peripheral_Protocol : ITCB_Device_Protocol

We add a couple of properties to hold the last question and answer to the peripheral.

  • This is any question that may have been asked. It can be nil.

    Declaration

    Swift

    var question: String! { get }
  • This is any answer that has been provided by this Peripheral. It can be nil.

    Declaration

    Swift

    var answer: String! { get }
  • This is used by a Central to ask a Peripheral a question.

    IMPLEMENTATION NOTE: This method should set the question and answer properties to nil, and not set the question property until receiving confirmation from the device.

    Declaration

    Swift

    func sendQuestion(_ question: String)

    Parameters

    question

    The question sent by this Central to the Peripheral.