1 package GSM::SMS::OTA::OTA;
6 @EXPORT = qw( OTAdecode_8bit
16 $msg .= pack('H2',substr($ud,0,2));
28 $msg .= sprintf("%.2X", ord(substr($ud,0,1)));
42 This package contains 2 functions to decode and encode 8 bit data in an ASCII alphabet. It just writes out a byte as a 2 character string, containing the hexadecimal representation.
46 $binary = OTAdecode_8bit( $text )
47 $text = OTAencode_8bit( $binary )
51 Johan Van den Brande <johan@vandenbrande.com>