GSM-SMS
view release on metacpan or search on metacpan
lib/GSM/SMS/NBS/Stack.pm view on Meta::CPAN
package GSM::SMS::NBS::Stack;
use GSM::SMS::PDU;
use Data::Dumper;
$VERSION = "0.161";
# $__NBSSTACK_PRINT++;
# Keep the packets alive for 1 day
$__TIME_TO_LIVE = 60*60*24;
# Constructor
sub new {
my $proto = shift;
my $class = ref($proto) || $proto;
my $self = {};
$self->{STACK} = {};
my %arg = @_;
lib/GSM/SMS/Transport/Serial.pm view on Meta::CPAN
unless ($res =~/OK/is) {
logerr "Could not communicate to $port, expected 'OK' but got '$res'";
return undef;
}
# Check the modem status (PIN, CSCA and network connection)
return undef unless ( $self->_register );
$self->{MSGARRAY} = [];
logdbg "debug", "Modem is alive! (SQ=" . $self->_getSQ() . "dBm)";
return $self;
}
=item B<close> - Close the init file
=cut
sub close {
my ($self) =@_;
( run in 0.726 second using v1.01-cache-2.11-cpan-39bf76dae61 )