IoT Jobs
Application to run on device and run remote jobs.
Install
- Install dependencies
sudo apt-get install cmake
sudo apt-get install libssl-dev
- Create a new thing on aws console and download certifications
- Move certs directory into home (~/certs)
- Create a copy of the example/deviceConfig.json and move to (~/certs)
- Edit deviceConfig.json for device specific settings
- All files must have the following permissions
chmod 644 deviceConfig.json
chmod 600 private.pem.key
chmod 644 AmazonRootCA1.pem
chmod 644 device.pem.crt
- npm install
Running
- npm run prepare
- npm run start
- if deviceConfig.json not in the default ~/certs directory use
npm run app -- --device_config <my_location>/deviceConfig.json
`