Ec2X Manager

Handlers

download

Downloads a file from the EC2X device.

ARGUMENTS

  • cmd (str): AT command to perform the actual download.
  • size (int): Size of the file to download.
  • dest (str): Destination path to which the downloaded file is to be written.

exec

Runs an AT command against the EC2X device.

ARGUMENTS

  • cmd (str): AT command to execute.

power

Powers down the EC2X device.

ARGUMENTS

  • cmd (str): AT command to perform the power down.

OPTIONAL ARGUMENTS

  • reason (str): Reason code that tells why we decided to power down. Default is unknown.

sync_time

Synchronizes the system clock with the EC2X device.

OPTIONAL ARGUMENTS

  • force (bool): Default is False.

upload

Uploads a file to the EC2X device.

ARGUMENTS

  • cmd (str): AT command to perform the actual upload.
  • src (str): Destination path to the file to be uploaded.