expliot.plugins.mqtt.awsiotsub

Plugin to subscribe to a topic on an AWS IoT endpoint.

Module Contents

Classes

AwsIotSub

Subscribe to a topic on an AWS IoT endpoint.

class expliot.plugins.mqtt.awsiotsub.AwsIotSub

Bases: expliot.core.tests.test.Test

Subscribe to a topic on an AWS IoT endpoint.

Output Format: [

{

“topic”: “foobar/topic”, “payload”: “Foobar payload”

}, # … May be zero or more entries

]

subcb(client, userdata, message)

A callback method that is called when the thing receives a message on the subscribed topic from an AWS IoT endpoint.

execute()

Execute the plugin.