Internet of Things
From Federal Burro of Information
aka IoT
I have two raspberry pis that i'd like to wire up using AWS IoT
AWS Iot Notes
AWS Setup Notes
http://docs.aws.amazon.com/iot/latest/developerguide/policy-actions.html
aws iot list-policy-principals --policy-name mypolicy aws iot list-principal-policies --principal ?? aws iot list-principal-things --principal ?? aws iot list-thing-principals --thing-name mypi1
principal means certificate.
THINGS <-> PRINCIPAL ( cert ) <-> POLICY
best guid so far:
https://www.hackster.io/mariocannistra/python-and-paho-for-mqtt-with-aws-iot-921e41
Script service setup
/lib/systemd/system/awsiotpub_temp.service
[Unit] Description=IoT AWS Sensor Publisher After=multi-user.target [Service] Type=simple ExecStart=/usr/bin/python /home/pi/python-paho-mqtt-for-aws-iot/awsiotpub_temp.py Restart=on-abort [Install] WantedBy=multi-user.target
Guides
- https://dzone.com/refcardz/getting-started-with-mqtt
- What is mqtt?
- https://www.hackster.io/mariocannistra/python-and-paho-for-mqtt-with-aws-iot-921e41
- I like this guide because it gives an example subscriber and an example publisher.
References
MQ Best practices http://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices