Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 845

Integration with AWS IoT using the MQTT adapter

$
0
0

1. Introduction.

AWS IoT is a managed cloud platform that lets connected devices easily and securely interact with cloud applications and other devices. AWS IoT can support billions of devices and trillions of messages, and can process and route those messages to AWS endpoints and to other devices reliably and securely. With AWS IoT, your applications can keep track of and communicate with all your devices, all the time, even when they aren’t connected.

 

AWS IoT allows you to easily connect devices to the cloud and to other devices. AWS IoT supports MQTT, a lightweight communication protocol specifically designed to tolerate intermittent connections, minimize the code footprint on devices, and reduce network bandwidth requirements.

(source AWS IoT - Amazon Web Services)

 

This blog guides you thru the configuration steps to connect your SAP PI/PO or SAP HCI to AWS IoT using the Advantco MQTT adapter.

 

2. Configure on AWS IoT

Use the AWS Web Console to the following configurations.

 

2.1. Create a Device in the Thing Registry

Click “Create a thing” --> input a name for device (example: device2) --> click “Created”.

pic1.png

2.2. Create and Activate a Device Certificate

Click Create a certificate  --> Click Active --> click “1-Click Certificate create”

pic2.png

Download the certificate and private key.

 

2.3. Create an AWS IoT Policy

Click “Create Policy” --> input a policy name --> choose value for action (example: iot:*) --> input value for resource (example: *) --> enable “Allow checkbox” --> click “Add statement”

 

 

pic4.png

2.4. Attach an AWS IoT Policy to a Device Certificate

Choose a device certificate and from the Actions menu, choose “Attach a policy”.

pic5.png

2.5. Attach a Thing to a Certificate

Choose a device certificate and from the Actions menu, choose “Attach a thing”.

pic6.png

Input a device name and click “Attach”

pic7.png

2.6. Obtain the AWS IoT Certificate

Go to the AWS IoT Console url and click on the lock icon and then click details

pic8.png

 

pic9.png

 

3. Configure the MQTT Adapter on the PI/PO

 

3.1. Import AWS certificate into Netweaver Keystore.

pic10.png

3.2. Configure at sender channel

pic11.png

 

3.3. Configure at sender channel

pic12.png

 

4.Configure the MQTT Adapter on the HCI


4.1. Import client certificate file to system.jks

Download the system.jks file to the local system from HCI.

You can use KeyStore Explorer tool to import the PKCS#12 file to the system.jsk file.

Select import --> choose PKCS#12 --> click OK

pic13.png

Deploy modified system.jks file to HCI.


4.2. Configure at sender channel

pic14.png


4.3. Configure at Receiver channel

pic15.png


5. AWS Iot MQTT Client

You can use the AWS IoT MQTT client to better understand the MQTT messages sent by a device.

Devices publish MQTT messages on topics. You can use the AWS IoT MQTT client to subscribe to these topics to see the content of these messages.

Refer to http://docs.aws.amazon.com/iot/latest/developerguide/view-mqtt-messages.html


Viewing all articles
Browse latest Browse all 845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>