| OLD | NEW |
| 1 <h1>Serial Devices</h1> | 1 <h1>Serial Devices</h1> |
| 2 | 2 |
| 3 <p> | 3 <p> |
| 4 </p> | 4 </p> |
| 5 | 5 |
| 6 <p> | 6 <p> |
| 7 This document describes how to use the <a href="serial.html">serial API</a> to r
ead | 7 This document describes how to use the <a href="serial">serial API</a> to read |
| 8 and write from serial devices. Chrome Apps can also connect to | 8 and write from serial devices. Chrome Apps can also connect to |
| 9 <a href="app_usb.html">USB</a> and <a href="app_bluetooth.html">Bluetooth</a> de
vices. | 9 <a href="app_usb">USB</a> and <a href="app_bluetooth">Bluetooth</a> devices. |
| 10 </p> | 10 </p> |
| 11 | 11 |
| 12 <p class="note"> | 12 <p class="note"> |
| 13 <b>Samples:</b> For examples that illustrate how Chrome Apps can connect to hard
ware devices through a serial port, see the | 13 <b>Samples:</b> For examples that illustrate how Chrome Apps can connect to hard
ware devices through a serial port, see the |
| 14 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/serial/a
dkjs#readme">adkjs</a>, | 14 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/serial/a
dkjs#readme">adkjs</a>, |
| 15 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/serial/l
edtoggle#readme">ledtoggle</a> and the | 15 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/serial/l
edtoggle#readme">ledtoggle</a> and the |
| 16 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/servo#re
adme">servo</a> samples. | 16 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/servo#re
adme">servo</a> samples. |
| 17 </p> | 17 </p> |
| 18 | 18 |
| 19 <h2 id="requirement">Manifest requirement</h2> | 19 <h2 id="requirement">Manifest requirement</h2> |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 chrome.serial.flush(connectionId, onFlush); | 175 chrome.serial.flush(connectionId, onFlush); |
| 176 </pre> | 176 </pre> |
| 177 | 177 |
| 178 <h2 id="More">More</h2> | 178 <h2 id="More">More</h2> |
| 179 | 179 |
| 180 <p> | 180 <p> |
| 181 The Serial API has several other features. You can, for example, set a connectio
n to persistent, so it can receive data | 181 The Serial API has several other features. You can, for example, set a connectio
n to persistent, so it can receive data |
| 182 even when your app is not running, or you can update connection parameters on th
e fly, like bitrate, timeouts, control signals, and many others | 182 even when your app is not running, or you can update connection parameters on th
e fly, like bitrate, timeouts, control signals, and many others |
| 183 with the $(ref:serial.update) method. See the full reference of the $(ref:seria
l) API for more information. | 183 with the $(ref:serial.update) method. See the full reference of the $(ref:seria
l) API for more information. |
| 184 </p> | 184 </p> |
| OLD | NEW |