To Connect a LabVIEW device to AWS IoT cloud using WireQueue MQTT Toolkit

To Connect a LabVIEW device to AWS IoT cloud using WireQueue MQTT Toolkit

🔗Requirements

  • 📌LabVIEW 2019
  • 📌AWS account
  • 📌WireQueue MQTT Toolkit

You can check my article LABVIEW BASICS in case you are new to this topic.

WireQueue MQTT Toolkit - This Driver is a LabVIEW software add-on. This add-on allows you to communicate securely over the Internet utilizing the WireQueue.com service.

Make sure you must have your AWS account. You can create a free account for 12 months. For more details, I must recommend Amazon Web Services- An Overview (article by Neha Soni)

Let's dive into the step-by-step implementation🍁 !!

🔗Registering Thing

  1. Install toolkit for LabView WireQueue-MQTT by WireFlow.

  2. Now login to your AWS account.

  3. AWS offers a plethora of services. Look for IoT core service. a1.png

  4. We will now build a "Thing."

  5. Go to Manage -> Things, and choose "Register a thing" or Create if you have already registered Things. a2.png

  6. Click Create a single thing. a3.png

  7. Now we need to give the thing a name (e.g. “Pavan21”) and click Next.

  8. Create a certificate and keys using One-click certificate creation. a4.png

  9. Download Certificate files and key files (4 in total). The root CA cert for AWS IoT file is called AmazonRootCA1.pem on disk. Click Activate to activate the certificate. Click Attach a policy. a5.png

  10. We don’t have any policies to attach just yet, so click Register Thing at this point. a6.png

THING is registered successfully💥. a7.png


🔗Creating Policy

  1. Navigate to SecurePolicies and then click Create a policy. a8.png

  2. Fill in the required credentials in the form.

    Name = pavandeep
    Action = iot.* 
    Resource ARN = “*”
    

    Check Allow and click Create. a10.png

  3. Navigate to SecureCertificates and click on the certificate you just created a11.png

  4. Now attach Thing to the certificate. a12.png

  5. Navigate to Details and take note of its Amazon Resource Name (ARN). a13.png

  6. Navigate to Interact and take note of its Rest API Endpoint that is to be used as Server Name. a14.png

Now we have performed all actions and gathered all information we need to connect to the AWS IoT. Verify functionality by running the MQTT_BasicExample.vi installed with the WF WireQueue-MQTT vipm-packet.

🔗 Fill in the following parameters in the front panel of Labview:-

• Configuration = Manual Configuration

• Server IP = (e.g. av2dk1zpde99q-ats.iot.us-east-2.amazonaws.com)

• Communication type = TCP/IP (TLS)

• Client ID = (e.g. arn:aws:iot:us-east-2:314593423196:thing/Pavan21)

That's all. 🙌

Now you are all set to connect your LabVIEW device to AWS IoT cloud using WireQueue MQTT Toolkit.

Thanks for Reading 💖

That concludes this blog article. If you liked it and found it useful, please like and share so that it reaches others as well.

Did you find this article valuable?

Support Pavandeep Kaur 🇮🇳 by becoming a sponsor. Any amount is appreciated!