Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
#### A sample policy is attached, that by default, allows all iot access to the edge device using that certificate.

8 changes: 8 additions & 0 deletions Sample_Policy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action":["iot:*"],
"Resource": ["*"]
}]
}
2 changes: 1 addition & 1 deletion mqtt_subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down