#!/bin/bash # stop script on error set -e # install AWS Device SDK for Python if not already installed if [ ! -d ./aws-iot-device-sdk-python ]; then printf "\nInstalling AWS SDK...\n" git clone https://github.com/aws/aws-iot-device-sdk-python.git pushd aws-iot-device-sdk-python python setup.py install popd fi # run simulated device printf "\nRunning Simulated Device...\n" python simulated_motor.py