CIOs and IT teams will need to treat "things"in IoT the same way they treat their customers requesting service. According to Gartner - By 2018, 6 billion connected things or devices will be requesting support.

In the previous blog, we have performed how to integrate devices or things with AWS IoT. AWS also provides sdk for node.js, C and Arduino that can be used as well.

In this article, we will see how Flint IT Automation Platform can be integrated with AWS IoT. Flint when connected to AWS IoT, can send and receive messages from connected IoT devices.

Flint provides integration with IoT devices and offers to -

  • Easily connect your devices or things to external systems and application
  • Act on events generated by devices
  • Offloads logical actions, decisions work and other activities of devices to flint
  • Send instructions to devices from external applications or systems
  • Bulk upgrade your devices over SSH or MQTT

1. Create a Thing & attach it with Certificate

A. Click on Create a resource button

We need to connect with Flint as a 'thing'; this thing will be Flint MQTT Listener

Create a resource

B. Select Create a thing option -> Provide the Name for a thing (in our case it will be 'flint-mqtt-listener') -> Click on Create button

Create a thing

C. To view details of newly created thing click on ‘View thing’ button

View thing

D. You can see details of thing on the right side as in screenshot below -

Details of thing

E. To attach a thing with Certificate we need to select a certificate and then Attach a thing from the Actions menu.

Attach a thing

F. Click on Attach a thing opens a pop-up box, enter the name of thing and click on attach button.

Attach a thing pop-up

G. After attaching a thing with certificate we are ready to use 'thing' for publish/subscribe.

We may use an MQTT client to subscribe and publish to the MQTT topic. MQTT clients require a root CA certificate to authenticate with AWS IoT. Download the root CA certificate file from root certificate.

2. Configure MQTT Connector & Listener for AWS IoT on Flint console

With MQTT Connector, Flint can send message to the MQTT topic. All the devices listening to that topic will receive the messages.

MQTT Listener can listen/monitor the MQTT topic for incoming messages. All the messages sent to that topic will be received by the listener. You can enable multiple listeners on a grid. Each listener message can trigger and run a flint workflow (flintbit) designed to perform specific tasks.

H. Configuring the MQTT connector on Flint

Login to Flint -> Go to Connector from left side navigation and click on Add Connector button

Add Connector

I. Provide configuration parameters for the connector

  • Assign a Name to MQTT Connector
  • Select flint-mqtt-connector as connector type from drop down
  • Add Description for the connector
  • Provide number of instances of (may be '10' for now) MQTT connector
  • Select Auto-HA as High-Availability options from radio buttons
  • Add Config in JSON for the connector with details of MQTT topic
  • Click on Add & Enable button to add and enable or activate this on Flint

Connector configuration

J. Configuring the MQTT listener on Flint console

Navigate to the Listeners options from the side menu -> Click on Add Listener button

K. This will take us to the screen for configuring the listener. Provide configuration parameters for the listener

  • Assign a Name to MQTT listener
  • Select flint-mqtt-listener as connector type from drop down
  • Provide the Trigger i.e. workflow/flintbit name to be triggered upon new message arrival
  • Add Description for the listener
  • Provide number of instances of (may be '1' for now) MQTT listener
  • Select Auto-HA as High-Availability options from radio buttons
  • Add Config in JSON for the listener
  • Click on Add & Enable button to add and enable or activate this on Flint

Configure listener

There you go ! Now Flint is ready to listen to the messages that lands on the configured topic. It can run/trigger desired workflow/flintbit to accomplish activities and tasks.

You may visit our website for ready IoT Connect solution built with Flint IT Automation Platform

Flint is free to use. Download it today!

Next Post Previous Post