O'Reilly logo

Arduino Sketches: Tools and Techniques for Programming Wizardry by James A. Langbridge

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required