Skip to content

divekarshubham/RunOTA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

RunOTA

Requirements

  1. Python 3.6+
  2. Install poetry using curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

Getting Started

Running the image with python

  1. Clone the repo: git clone git@github.com:divekarshubham/RunOTA.git && cd RunOTA/RunOTABinary
  2. Install the requirements using poetry install
  3. Run the exe with the command poetry run agent <filepath> <[Optional]logging file> eg: poetry run agent ~/ota/ota_demo_core_mqtt ~/ota/logs/logfile.txt

Building image with Python

  1. Specify the configurations of the project like cert path in config_project.py
  2. Specify the project to build in repository_root in config_project.py e.g. Path('/home/ubuntu/dev/csdk/aws-iot-device-sdk-embedded-C')
  3. Build using the command poetry run build

Creating an OTA update

  1. Specify the configurations of the project like bucket_name and update_role_arn in config_project.py
  2. Specify the project to build in repository_root in config_project.py e.g. Path('/home/ubuntu/dev/csdk/aws-iot-device-sdk-embedded-C')
  3. Create an update with poetry run update <filename> <filepath>. is the name of the binary when it is downloaded and contains the actual binary to upload. e.g. poetry run update ota_demo_core_mqtt2 /home/ubuntu/dev/csdk/aws-iot-device-sdk-embedded-C/build/bin/ota_demo_core_mqtt

Interrupting an MQTT connection to the cloud

  1. Update the certificate, private key and endpoint in the config_project.py
  2. Establish a connection using poetry run interrupt

Running the Canary

  1. Enter all the credentials in config_project.py
  2. Enter the command to run the canary: poetry run canary

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages