Class AWSIotTopic

    • Constructor Detail

      • AWSIotTopic

        public AWSIotTopic​(String topic)
        Instantiates a new topic object.
        Parameters:
        topic - the topic to be subscribed to
      • AWSIotTopic

        public AWSIotTopic​(String topic,
                           AWSIotQos qos)
        Instantiates a new topic object.
        Parameters:
        topic - the topic to be subscribed to
        qos - the MQTT QoS level for the subscription
    • Method Detail

      • onMessage

        public void onMessage​(AWSIotMessage message)
        Callback function to be invoked upon the arrival of a subscribed message.
        Specified by:
        onMessage in interface AwsIotTopicCallback
        Parameters:
        message - the message received