A string that represents the unique device identifier.
Checks whether the modem is currently open and connected. This can be used to verify the connection status before attempting to send commands or messages.
True if the modem is connected, otherwise false.
Retrieves the total length of the command queue.
The total number of commands currently queued for execution.
Checks the SIM card memory usage for stored SMS messages.
Whether this action should be prioritised in the command queue.
A promise that resolves with the SIM memory usage information.
Deletes a specified SMS message and its referenced messages. This method is designed to delete both the specified SMS message and any referenced messages.
The SMS message to be deleted along with its referenced messages.
Whether this action should be prioritised in the command queue.
A promise that resolves a object containing arrays of deleted and failed message indexes.
Executes a given AT command on the modem.
The AT command to be executed.
Whether this action should be prioritised in the command queue.
Optional
cmdtimeout: numberOptional timeout for the command execution.
A promise that resolves with the command response or rejects with an error.
Retrieves a list of available networks that the modem can see at the moment.
Whether this action should be prioritised in the command queue.
A promise that resolves with a list of available networks.
Retrieves the own phone number stored in the modem.
Whether this action should be prioritised in the command queue.
A promise that resolves with the name and phone number.
Retrieves information about the currently registered network.
Whether this action should be prioritised in the command queue.
A promise with an object containing network information.
Retrieves information about the current network signal strength and quality.
Whether this action should be prioritised in the command queue.
A promise with an object containing signal quality and strength.
Retrieves the SMS inbox from the SIM card. It constructs an array of PduSms objects representing the messages in the inbox. If message concatenation is enabled, it combines concatenated messages into a single PduSms object.
Whether this action should be prioritised in the command queue.
A promise that resolves with an array of PduSms objects representing SMS messages in the inbox.
Initializes the modem with specified settings. This includes checking the modem's status, resetting it, setting echo mode, providing a PIN if required, executing a custom initialization command, setting the modem mode to PDU, and enabling caller identification.
Whether this action should be prioritised in the command queue.
Rest
...args: unknown[]Sends a PDU (Protocol Data Unit) formatted SMS using the provided PDU class.
The PDU object representing the SMS to be sent.
Whether this action should be prioritised in the command queue.
A promise indicating the success of the SMS sending.
Sends an SMS message to a specified number. Allows for sending flash SMS by setting the data coding scheme accordingly.
The recipient's phone number.
The text message to be sent.
Whether the message should be sent as a flash SMS.
Whether this action should be prioritised in the command queue.
A promise that resolves when the SMS has been sent.
Sets the own phone number in the modem's phone book storage. This method first selects the phone book storage and then writes the provided phone number and name into it.
The phone number to set as the own number.
The name associated with the phone number, defaults to 'OwnNumber'.
Whether this action should be prioritised in the command queue.
Writes an entry to the phone book storage.
The phone number to store.
The name associated with the phone number.
Whether this action should be prioritised in the command queue.
Generated using TypeDoc
A getter method to retrieve a unique identifier for the modem device.