From 31a4ad6d1664a9c7e968b6c14e3ef657e834d7bc Mon Sep 17 00:00:00 2001 From: mohan-barathi Date: Sun, 25 Nov 2018 20:54:54 +0530 Subject: [PATCH 1/4] Modified the README --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4fc560e..c654435 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ -# AWS-IoT-with-Python-Paho +# Fork of AWS-IoT-with-Python-Paho -For Details please refer to following link - +All the deatails of this working project are available at the below mentioned link https://iotbytes.wordpress.com/mqtt-with-aws-iot-using-python-and-paho/ + +## Informations that are not listed in the above site are : +### There is no metion about the policy that should be attached to the certificates generated. + + From f129d4c197ba0eda59f3e774c120d17ee50f7cc9 Mon Sep 17 00:00:00 2001 From: mohan-barathi Date: Sun, 25 Nov 2018 21:00:29 +0530 Subject: [PATCH 2/4] The coding error pointed out in parent project, has been corrected here --- mqtt_subscribe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt_subscribe.py b/mqtt_subscribe.py index dbdbd8f..2936b82 100644 --- a/mqtt_subscribe.py +++ b/mqtt_subscribe.py @@ -15,7 +15,7 @@ # Define on connect event function # We shall subscribe to our Topic in this function -def on_connect(mosq, obj, rc): +def on_connect(self, mosq, obj, rc): mqttc.subscribe(MQTT_TOPIC, 0) # Define on_message event function. From c0794c287022fff8896b969171b12f02236fae93 Mon Sep 17 00:00:00 2001 From: mohan-barathi Date: Sun, 25 Nov 2018 21:05:14 +0530 Subject: [PATCH 3/4] Modified Readme, and added a new SamplePolicy file --- README.md | 2 +- Sample_Policy.txt | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Sample_Policy.txt diff --git a/README.md b/README.md index c654435..7bd5762 100644 --- a/README.md +++ b/README.md @@ -6,5 +6,5 @@ https://iotbytes.wordpress.com/mqtt-with-aws-iot-using-python-and-paho/ ## Informations that are not listed in the above site are : ### There is no metion about the policy that should be attached to the certificates generated. - +#### A sample policy is attached, that by default, all iot access to the edge device using that certificate. diff --git a/Sample_Policy.txt b/Sample_Policy.txt new file mode 100644 index 0000000..e833403 --- /dev/null +++ b/Sample_Policy.txt @@ -0,0 +1,8 @@ +{ + "Version": "2012-10-17", + "Statement": [{ + "Effect": "Allow", + "Action":["iot:*"], + "Resource": ["*"] + }] +} From 41810865d446e8f9e76699129fe5d8a07118e914 Mon Sep 17 00:00:00 2001 From: mohan-barathi Date: Sun, 25 Nov 2018 22:26:30 +0530 Subject: [PATCH 4/4] corrected a typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7bd5762..d2fa139 100644 --- a/README.md +++ b/README.md @@ -6,5 +6,5 @@ https://iotbytes.wordpress.com/mqtt-with-aws-iot-using-python-and-paho/ ## Informations that are not listed in the above site are : ### There is no metion about the policy that should be attached to the certificates generated. -#### A sample policy is attached, that by default, all iot access to the edge device using that certificate. +#### A sample policy is attached, that by default, allows all iot access to the edge device using that certificate.