CHAPTER23

Bridge

This chapter discusses the following functions of the Bridge library:

  • Bridge.begin()
  • Bridge.put()
  • Bridge.get()
  • Process.begin()
  • Process.addParameter()
  • Process.run()
  • Process.runAsynchronously()
  • Process.running()
  • Process.exitValue()
  • Process.read()
  • Process.write()
  • Process.flush()
  • Process.close()
  • FileSystem.begin()
  • FileSystem.open()
  • FileSystem.exists()
  • FileSystem.rmdir()
  • FileSystem.remove()
  • YunServer.begin()
  • YunClient.connected()
  • YunClient.stop()

The hardware needed to use these functions includes:

  • Arduino Yún
  • 1 × Breadboard
  • 1 × LDR
  • 1 × 10 kΩ resistor
  • Wires

You can find the code download for this chapter at http://www.wiley.com/go/arduinosketches on the Download Code tab. The code is in the Chapter 23 folder and the filename is Chapter23.ino.

Introducing Bridge Library

There is often confusion as to the name of a microcontroller. A microcontroller (as the name implies) controls, whereas a microprocessor processes data. This becomes apparent for the Arduino Yún, where both are present.

In December 2002, Linksys released its WRT54G residential wireless router. It was a small device with two antennae behind a blue-and-black cover. Behind were four Ethernet LAN ports and an uplink port. It was an easy way to add high-speed Wi-Fi to a home network and was used by a large number of people, including myself. My WRT54G increased my wireless range at home and allowed me higher speeds than what my Internet modem provided. (The WRT54G provided Wi-Fi-G instead of the aging ...

Get Arduino Sketches: Tools and Techniques for Programming Wizardry now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.