Net::Radio::oFono::Modem - access to oFono's Modem objects
Provides access to oFono's Modem objects with org.ofono.Modem interface.
use Net::Radio::oFono::Modem; ... my $modem = Net::Radio::oFono::Modem->new("/option_0"); if( !$modem->GetProperty("Online") ) { $modem->SetProperty("Online", dbus_boolean(1) ); }
Usually modem objects are accessed via "get_modem_interface" in Net::Radio::oFono:
$oFono->get_modem_interface("Modem")->SetProperty("Online", dbus_boolean(1) );
Net::Radio::oFono::Modem ISA Net::Radio::oFono::Helpers::EventMgr DOES Net::Radio::oFono::Roles::RemoteObj DOES Net::Radio::oFono::Roles::Properties
No additional events are triggered.
Instantiates new object for org.ofono.Modem interfaced objects.
Initializes the Modem interface. Using the "basename" of the instantiated package as interface name for the RemoteObj role.
Alias for obj_path getter of RemoteObj role.
obj_path
To install Net::Radio::oFono, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Radio::oFono
CPAN shell
perl -MCPAN -e shell install Net::Radio::oFono
For more information on module installation, please visit the detailed CPAN module installation guide.