Manages current connection.
close(bool): Close serial connection? Default value is
Delete messages from message storage.
It is possible to list possible for deleting if no indexes are passed and the
delete_all kwarg is not passed (or set to
- index (int): The index of the message to be deleted. Default None.
- delete_all (bool): Set this boolean to true if all messages stored in the modem should be deleted. Default
- confirm (bool): A confirm flag when deleting messages. Default
Downloads a file from the EC2X device.
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.
Runs an AT command against the EC2X device.
cmd(str): AT command to execute.
List all messages from message storage.
In order to use this function, you need to first execute
to set the correct format of the SMS messages.
Powers down the EC2X device. Afterwards the module will start automatically. A 30-second wait is included after power off to allow the module time to recover before receiving any new requests.
cmd(str): AT command to perform the power down.
reason(str): Reason code that tells why we decided to power down. Default is
Reads SMS messages stored in the modem and processes them into
Those events hold information such as the timestamp of the message (when it was received by the
modem), the sender and the text. Messages will be deleted from the modem after being processed.
This function will configure the SMS format to text mode. This is necessary in order to read
the messages correctly. If necessary, revert the configuration with the
Gets or sets the SMS format configuration.
- 0: PDU mode - entire TP data units used (hex responses). This is the default value.
- 1: Text mode - headers and body of the message given as separate parameters.
Synchronizes the system clock with the EC2X device.
force(bool): Default is
Ensures following keys for return value:
clock_synced: boolean npt_enabled: boolean
Uploads a file to the EC2X device.
cmd(str): AT command to perform the actual upload.
src(str): Destination path to the file to be uploaded.