public/de.wigbels.ruby/mob2archiv/doc/files/m2a_rb.src/M000003.html
Norbert Wigbels 1e80fb3da1 Initial
2025-02-08 16:53:10 +01:00

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">&quot;obexapp -a #{BD_ADDR} -C OPUSH&quot;</span>, <span class="ruby-value str">&quot;w+&quot;</span>)
<span class="ruby-identifier">cam</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;cd #{OBEX_DIR1}&quot;</span>
<span class="ruby-identifier">cam</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;cd #{OBEX_DIR2}&quot;</span>
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">cam</span>
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>