lambda_mqtt_manager module

class lambda_mqtt_manager.MqttManager[source]
Constructor for Mqtt Manager, create logger, connect to AWS mqtt client and grab the list of IoT devices that are available
param self:
awsDeviceList = None

This of aws profiles of the supported IoT devices, used during discovery request to advertise available devices

createAWSClient()[source]
Connect to AWS mqtt server using credentials included with the lambda deployment package, most settings are stored in the mqtt_constant module
param self:instance of MqttManager
createLogger()[source]
Create a logger to log mqtt messages
param self:instance of MqttManager
iotObjList = None

List of IoT mcu that this backend can talk to to fulfill Alexa request, it will also advertise this list to Alexa using Discovery Directives

mqttPub(package, pubTopic)[source]
Publish the given package to the supplied mqtt topic
param self:instance of MqttManager
param package:json dict to be published
param pubTopic:topic to publish to