| OLD | NEW |
| 1 <h1>Accessing Hardware Devices</h1> | 1 <h1>Accessing Hardware Devices</h1> |
| 2 | 2 |
| 3 <p> | 3 <p> |
| 4 This doc shows you how packaged apps can connect to USB devices | 4 This doc shows you how packaged apps can connect to USB devices |
| 5 and read from and write to a user's serial ports. | 5 and read from and write to a user's serial ports. |
| 6 See also the reference docs for the | 6 See also the reference docs for the |
| 7 <a href="usb.html">USB API</a> | 7 <a href="usb.html">USB API</a> |
| 8 and the | 8 and the |
| 9 <a href="serial.html">Serial API</a>. | 9 <a href="serial.html">Serial API</a>. |
| 10 The <a href="bluetooth.html">Bluetooth API</a> is also available | 10 The <a href="bluetooth.html">Bluetooth API</a> is also available; |
| 11 (<a href="app_known_issues.html">known issues</a> still to be resolved); | |
| 12 we've include a link to a Bluetooth sample below. | 11 we've include a link to a Bluetooth sample below. |
| 13 </p> | 12 </p> |
| 14 | 13 |
| 15 <p class="note"> | 14 <p class="note"> |
| 16 <b>API Samples: </b> | 15 <b>API Samples: </b> |
| 17 Want to play with the code? | 16 Want to play with the code? |
| 18 Check out the | 17 Check out the |
| 19 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/serial">
serial</a>, | 18 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/serial">
serial</a>, |
| 20 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/servo">s
ervo</a>, | 19 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/servo">s
ervo</a>, |
| 21 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/usb">usb
</a>, | 20 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/usb">usb
</a>, |
| (...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 | 706 |
| 708 <p> | 707 <p> |
| 709 You can flush your serial port buffer by issuing the flush command: | 708 You can flush your serial port buffer by issuing the flush command: |
| 710 </p> | 709 </p> |
| 711 | 710 |
| 712 <pre> | 711 <pre> |
| 713 chrome.serial.flush(connectionId, onFlush); | 712 chrome.serial.flush(connectionId, onFlush); |
| 714 </pre> | 713 </pre> |
| 715 | 714 |
| 716 <p class="backtotop"><a href="#top">Back to top</a></p> | 715 <p class="backtotop"><a href="#top">Back to top</a></p> |
| OLD | NEW |