Integrating Monnit MINE with AWS

This is a brief “How-To” guide for integrating Monnit MINE with AWS.

Disclaimer: Process should be completed by a software developer with knowledge of AWS.

Needed prior to starting:

Monnit MINE (http://mine.imonnit.com/)

AWSSDK

Links needed prior to starting
Links needed prior to starting

Step 1:

Code Sample
Code Sample

Step 2:

  • Go to the AWS IoT console
  • Click “Resources”
  • Click the question mark on the far-right hand side of the screen to get your custom endpoint
  • Get a certificate and private key from the AWS IoT console

Step 3:

  • Go to the AWS IoT console
  • Click “Create a resource”
  • Click “Create a certificate”
  • Check the “Activate” box
  • Click “1-Click certificate create”
  • Click “Show private key”
  • Copy the private key contents into a file private.pem.key
  • Click “Show certificate”
  • Copy the certificate contents into a file certificate.pem.crt
  • Keep these credentials for future use
  • Create a policy that allows access to all AWS IoT data plane actions

Step 4

  • Go to the AWS IoT console
  • Click “Create a resource”
  • Click “Create a policy”
  • Name the policy “YourPolicyName”
  • Set the action to iot:*
  • Set the resource to *
  • Check the “Allow” box
  • Click “Add statement”
  • Click “Create”
  • Attach the policy to your certificate

Step 5

  • Go to the AWS IoT console
  • Click on the certificate you created
  • Click “Actions”
  • Click “Attach a policy”
  • Type “YourPolicyName” in the policy name field
  • Click “Attach”

Subscribe to a MQTT client

  • Go to MQTT client
  • Generate Client ID
  • Click Connect
  • Click Subscribe to Topic
  • Input Subscription Topic Name
  • Click Subscribe
  • Json will publish to Dialog box
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.