Changes

no edit summary
Line 12: Line 12:     
=Setting up AWS IoT=
 
=Setting up AWS IoT=
 +
 +
=== '''Creating a thing''' ===
 
First off, open the [https://aws.amazon.com/pt/console/ AWS Management Console] and login with your credentials. After that, you will see a screen similar to this:
 
First off, open the [https://aws.amazon.com/pt/console/ AWS Management Console] and login with your credentials. After that, you will see a screen similar to this:
 
[[File:Image987.png|none|thumb|862x862px]]
 
[[File:Image987.png|none|thumb|862x862px]]
 
On the search bar on the top, search for "IoT Core", and click on the first search result. You will see a screen like the one below, open the "Manage" section and click on "Things".
 
On the search bar on the top, search for "IoT Core", and click on the first search result. You will see a screen like the one below, open the "Manage" section and click on "Things".
[[File:Image986.png|left|thumb|865x865px]]
+
[[File:Image986.png|thumb|865x865px|alt=|none]]
 
  −
 
  −
 
  −
 
  −
 
  −
 
  −
 
  −
 
  −
 
      +
Then, do the following procedure to create a Thing: click on the "Create Things" button -> "Create single thing"  -> Give it any name -> "No shadow" -> "Auto-generate a new certificate (recommended)" -> "Create thing".
   −
Then you will do the following procedure to create a Thing: click on the "Create Things" button -> "Create single thing"  -> Give it any name -> "No shadow" -> "Auto-generate a new certificate (recommended)" -> "Create thing".
+
=== Certificate Handling ===
 
   
You will be prompted to download the certificates, those will be used by Publishers and Subscribers to connect to your AWS MQTT Broker, download the "Device certificate",  "Private key file,  "Public key file" and "Amazon Root CA 1".
 
You will be prompted to download the certificates, those will be used by Publishers and Subscribers to connect to your AWS MQTT Broker, download the "Device certificate",  "Private key file,  "Public key file" and "Amazon Root CA 1".
 
[[File:Image985.png|none|thumb|478x478px]]
 
[[File:Image985.png|none|thumb|478x478px]]
      
Move all the 4 files to a folder on the C:\ drive, so it's easy to locate them. Then, i'd recommend renaming them as following: Keep the "AmazonRootCA1.pem" as it is, the file xxxxx.'''pem.crt''' as device_certificate.pem.crt, the file xxxxx-'''private.pem.key''' as private_key.pem.key and the file xxxxx-'''public.pem.key''' as public_key.pem.key. After that, you will have the following:
 
Move all the 4 files to a folder on the C:\ drive, so it's easy to locate them. Then, i'd recommend renaming them as following: Keep the "AmazonRootCA1.pem" as it is, the file xxxxx.'''pem.crt''' as device_certificate.pem.crt, the file xxxxx-'''private.pem.key''' as private_key.pem.key and the file xxxxx-'''public.pem.key''' as public_key.pem.key. After that, you will have the following:
 
[[File:Image874.png|none|thumb|406x406px]]
 
[[File:Image874.png|none|thumb|406x406px]]
    +
=== Setting up policies ===
 +
Go back to the AWS IoT HuB, open the "Secure" tab and click on "Policies"
 +
[[File:Image8754.png|none|thumb|523x523px]]
   −
The last thing you hav
+
Do the following procedure: Click on "Create policy" -> Give it a name

Navigation menu