Switch to desktop version  
MQTT- Easy connection to AWS IoT Core (Amazon Web Services) - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: MQTT- Easy connection to AWS IoT Core (Amazon Web Services) (/thread-559.html)



MQTT- Easy connection to AWS IoT Core (Amazon Web Services) - Waterlot - 28-03-2018

See below post...


MQTT- Easy connection to the AWS IOT (amazon) - simon - 04-03-2019

Hi Guys,

Here you can easily configure ready-to-use BASIC scripts for your Flexy.

In the case of AWS IOT, all you have to do is :
  • In AWS IOT, go to "Onboard --> Configuring a device --> Get Started --> Select Windows/NodeJS --> Give a name (with be the DeviceID in the script) --> Download the connection kit (zip file) and create the device
  • Unzip the connection kit and copy the files *.cert.pem and *.private.key in the /usr directory of your Flexy by FTP.
  • Configure the script parameters in Ewon Support Script Repository : Ewon Live Data to AWS IOT or Ewon Historical Data to AWS IOT
       - The AWS MQTT broker URL is in the start.ps1 file included in the connection kit (
      BrokerURL.png (Size: 19,65 KB / Downloads: 378) )
       - The topic used to publish data must be declared in the Security policies assigned to the device (
      DeviceSecurityPolicies.png (Size: 22,07 KB / Downloads: 373) ).  See Action --> Publish. In my script, I used an existing topic.
  • Create some Tags and assign them to at least one group.
  • Run the script (Do not forget to select "Autorun" if you want to start the script at the eWON boot)

Simon