21 lines
No EOL
1.3 KiB
HTML
Executable file
21 lines
No EOL
1.3 KiB
HTML
Executable file
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html>
|
|
<head>
|
|
<title>getObexIOObject (m2a.rb)</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
</head>
|
|
<body class="standalone-code">
|
|
<pre><span class="ruby-comment cmt"># File m2a.rb, line 54</span>
|
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getObexIOObject</span>
|
|
<span class="ruby-identifier">cam</span> = <span class="ruby-constant">IO</span>.<span class="ruby-identifier">popen</span>(<span class="ruby-node">"obexapp -a #{BD_ADDR} -C OPUSH"</span>, <span class="ruby-value str">"w+"</span>)
|
|
<span class="ruby-identifier">cam</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"cd #{OBEX_DIR1}"</span>
|
|
<span class="ruby-identifier">cam</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"cd #{OBEX_DIR2}"</span>
|
|
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">cam</span>
|
|
<span class="ruby-keyword kw">end</span></pre>
|
|
</body>
|
|
</html> |