MQTT connection configuration with Amazon AWS platform
Aranet PRO base station allows all sensor data publishing directly to AWS IoT Core, but the base must have firmware version at least 2.5.17. Check the firmware version in the graphical user interface section System FIRMWARE and update from https://aranet.com/downloads/ if necessary.
Access AWS IoT Core console
Open the AWS page https://aws.amazon.com/ in a web browser and sign in to the Console.

In console search for IoT Core service.

Create a policy for MQTT connect/publish/subscribe actions
In the main menu (left side in the IoT Core console) open Security Policies. NOTE: A policy will be required later when a new thing will be created. This procedure must be performed once (to create a policy) unless there is a reason to have multiple policies.

Create a new policy (press on Create policy).

Enter the name for the policy.

In the Policy document enter following properties:
Policy effect: Allow
Policy action: select All IoT actions

Policy resource: enter '*'

Press Create. A new policy which allows to perform all MQTT protocol actions on all MQTT topics has been created.

Create a thing in the IoT Core
In the main menu (left side in the IoT Core console) open Manage Things.

Press on Create things, then select Create single thing and press Next.

Enter the name for a thing.

For Device Shadow select No shadow.

Device certificate: choose "Auto-generate a new certificate" and press Next.

Select the policy which was created previously, and press Create thing.

Download the certificates and keys. These files will be required later for the Aranet PRO base station MQTT configuration. Download and rename the files accordingly:
Download the Device certificate file and rename it as aranet-pro-base.crt

Download the Private key file and rename it as aranet-pro-base-private.key

Download the CA Root certificate file and rename it as aws-root-ca.crt

As a result there must be three downloaded files:

Also download the public key (it will not be required) and press Done. A new thing has been created.

Configure Aranet PRO base station’s MQTT to connect to AWS IoT Core
NOTE: The following step will be used to determine what is the Host address to which the Aranet PRO bases station will connect to and the MQTT protocol version. In order to connect the Aranet Pro base station to AWS IoT Core using MQTT, a thing must be created in AWS IoT Core service. Follow the steps described in create a thing in the IoT Core
In AWS IoT Core main menu open Test ⇒ MQTT test client and press on Connection details.

An Endpoint will be used for Host address (in the Aranet PRO base) and MQTT version for Protocol version accordingly.
Go to the Aranet PRO base station MQTT configuration interface and set it up as shown:

Configuration entries:
Enable – enable the MQTT;
Host address – use Endpoint address from the previous section;
Port – enter 8883;
Protocol version – set MQTT version from the previous section (example: MQTT v5);
Keepalive – use 10;
Authentication — disabled;
QoS level – use 1;
Root topic – use "Aranet";
Sensor measurement format – use raw;
Encryption — Amazon AWS requires certificate validation. Use TLSv1.2
a. Validate host certificate – enable to upload necessary secure connection certificates;
b. use aws-root-ca.crt file saved from Am
azon AWS;
c. Supply client certificate — enable to upload the device public certificate and private key for a secure connection to the MQTT broker;
d. use aranet-pro-base-private.key file saved from Amazon AWS;
e. use aranet-pro-base.crt file saved from Amazon AWS;

When all parameters are entered, save by pressing the blue Save icon. If the configured MQTT connection is successful, a "Connection successful" message will be shown on the top of the page with the time when the connection was established.
Last updated