Connecting AWS on UIFlow

Overview

This tutorial going to show you how to connect your device to the AWS cloud service platform to subscribe and publish data on UIFlow.

Add a device

Before going to the next step, you need to register a new device via AWS Management Console click here to view..... .

Click AWS services->IoT Core to enter the AWS IoT management page

Click Manage->Things->Create things to create a new device

Set up a device according to your needs, here will demonstrate the most basic single thing, for more details on device types, please visit: AWS Official Document

Enter the device name, Configuration and classification for different sets of devices, click Next->Set up DeviceCertificate->Device Configuration Strategy->Finish setting up

After Setting up your device, the download page of Key and Certificate will pop up. (Note: This page will be shown once)please follow the prompts to download Device certificate (Device certificate)+Device public key (Public Key File) )+Private Key File . (These files will be used for verification in subsequent operations)

Burn firmware

Burn the UIFlow firmware for your device (firmware requires v1.8.0 and above), click the document link below to view the detailed programming steps.

view the detailed programming steps.

programming

Click the 'Add button' of the initialization block, and import Device certificate+Device private key (Private Key File) in order. Note: The default key and certificate file names are too long. Modify them to a short stringas much as possible. The parameter things name is the name of the device we set up and needs to be consistent with the name in the AWS Management Console.

Copy the Endpoint from AWS Management Console->Settings, and fill it in the HOST parameter. For the port parameter, we use the MQTT service port 8883, and 'keepalive' filled in as 60. For more service port information, please visit AWS Official Document

Add the execution program for subscription and publication, and specify the topic information. Click the 'run'button upper right corner of the UIFlow page to execute the program.

Subscribe to publish

Click AWS Management Console->Test to enter the online test page. This function is used to test the MQTT message of the device in the AWS account, click Additional configuration to adjust the QoS level.

Publish topic: fill in Topic and Message payload, click Publish.

Subscribe topic: fill in Topic, click Subcribe . and Click Additional configuration to set the type of message displayed, and all received message will be displayed on the console at the bottom of the page.

On This Page