libs/library.php
/**
     * Converts a message from hex string to a binary string for sending
     *
     * @param string $hex
     *            message in hex string in format /^[0-9A-F]{44}$/
     * @return string data prepared to send to parent
     */
Converts a message from hex string to a binary string for sending
@param string $hex
message in hex string in format /^[0-9A-F]{44}$
@return string data prepared to send to parent
Converts a message from hex string to a binary string for sending @param string $hex message in hex string in format / ^ [ 0 - 9A - F ] { 44 } $ @return string data prepared to send to parent
private function ConvertMsgToSend($hex)
    {
        $str = "";
        for ($i = 0; $i < strlen($hex) - 1; $i += 2) {
            $str .= chr(hexdec($hex [$i] . $hex [$i + 1]));
        }
        return $str;
    }
private function ConvertMsgToSend ( $ hex ) { $ str = " " ; for ( $ i = 0 ; $ i < strlen ( $ hex ) - 1 ; $ i += 2 ) { $ str .= chr ( hexdec ( $ hex [ $ i ] . $ hex [ $ i + 1 ] ) ) ; } return $ str ; }
Converts a message from hex string to a binary string for sending
 @param string $hex
            message in hex string in format /^[0-9A-F]{44}$
 @return string data prepared to send to parent
Converts a message from hex string to a binary string for sending @param string $hex message in hex string in format / ^ [ 0 - 9A - F ] { 44 } $ @return string data prepared to send to parent