I would like to have a lightweight command, as I use in bash, to post something in a subject on MQTT inside the AWS Lambda function. Line by line: mosquitto_pub -h my.server.com -t "light / set" -m "on"
Background: I would like to turn on the lamp and turn it off with Alex. Alexa can launch the Lambda function, and inside this lambda function I would like to start publishing MQTT, because the lamp can listen to the MQTT topic and respond to messages there. (Maybe there are simpler solutions, but we are in a state of complex (university) network, which complicates many other approaches)
amazon-web-services aws-lambda mqtt publish
matt_55_55
source share