This project will introduce you to the Edge MicroServer (EMS) and how to connect your ThingWorx server to a Raspberry Pi device.
Following the steps in this guide, you will be able to connect to the ThingWorx platform with your Raspberry Pi. The coding will be simple and steps will be very straight forward.
We will teach you how to utilize the EMS for your Edge device needs. The EMS comes with the Lua Script Resource, which serves as an optional process manager, enabling you to create Properties, Services, Events, and Subscriptions for a remote device on the ThingWorx platform.
|Est. Time||30 Minutes|
|Published||June 14, 2018|
You'll learn how to
- Set up Raspberry Pi
- Install, configure and launch the EMS
- Connect a remote device to ThingWorx
Things used in this project
This guide requires a connection to the ThingWorx Foundation.
It assumes that you are utilizing the 30-day hosted Foundation server or the 120-day downloaded trial.
In order to complete this exercise, you need the following:
- Raspberry Pi - If you don't have one, purchase one directly from the Raspberry Pi web site or from a distribution partner: Digi-Key, or RS
- An SD card (8 GB or larger) with the Raspbian Jessie operating system installed.
- Either a remote access application, or a monitor, USB keyboard and a USB mouse to interact with the Pi
CONNECT RASPBERRY PI TO THINGWORX
- Step 1: Setup Raspberry Pi
- Step 2: Install the EMS
- Step 3: Create Application Key
- Step 4: Configure the EMS
- Step 5: Launch the EMS
- Step 6: Configure Lua Script Resource (LSR)
- Step 7: Configure Template File (Properties)
- Step 8: Configure Template File (Service)
- Step 9: Run LSR
- Step 10: Bind Remote Thing Properties
- Step 11: View Data from Devices
- Step 12: Connect to Temperature Sensor
- Step 13: Next Steps