Static
initA DBus system bus instance (ie dbus.getBus('system')), a single bus instance should be used for all objects created with this library.
A modem object path (ie "/org/freedesktop/ModemManager1/Modem/0").
Private
_listenRequires root access, depending on user permissions and ModemManager policy configuration.
Send an arbitrary AT command to a modem and get the response. Note that using this interface call is only allowed when running ModemManager in debug mode, or if the ModemManager was built using the with-at-command-via-dbus configure option.
Promise of the modem's response
String: The command string, e.g. "AT+GCAP" or "+GCAP" (leading AT is inserted if necessary)
optional - Integer: The number of seconds to wait for a response. Defaults to 5.
Create a new packet data bearer using the given characteristics. This request may fail if the modem does not support additional bearers, if too many bearers are already defined, or if properties are invalid. The properties allowed are any of the ones defined in the bearer properties.
Promise of the new Bearer
object, or null
on a failure
Object: Dictionary of properties needed to get the bearer connected
a Promise containing a new AdvancedSignal interface for the Modem
Private
_advancedPrivate
_bearersPrivate
_busPrivate
_locationPrivate
_modem3gppPrivate
_modemPrivate
_objectPrivate
_propertiesPrivate
_propertiesPrivate
_propertiesPrivate
_simAn RxJS observable for the Modems properties. Properties are updated by listening to the org.freedesktop.DBus.Properties PropertiesChanged signal
The current properties for the Modem, but translates the enums and reformats some fields to be more human readable.
The current properties for the Modem
Private
constructorGenerated using TypeDoc
Creates a new Modem object. Typically Modem objects will be created automatically when a ModemManager object is instantiated. They can be accessed from modems
Returns
A Promise containing a Modem object found using objectPath