Arduino Bridge Library


The Arduino Yún has two processors on board. One is an ATmega32U4 (the same of Arduino Leonardo) and the other is an Atheros 9331 where Linux and the OpenWRT wireless stack runs. This enables the board to connect to WiFi and Ethernet networks. 
This combination allows to call programs or custom scripts on the Linux system, to connect with various internet services through the Arduino.

The Bridge library simplifies communication between the ATmega32U4 and the AR9331. 
It inherits from Stream. You should be familiar with most of the methods from Serial and other derivatives of Stream.

Bridge commands from the 32U4 are interpreted by Python on the AR9331. 
Its role is to execute programs on the GNU/Linux side when asked by Arduino. 
It provides a shared storage space for sharing data like sensor readings between the Arduino and the Internet, and receiving commands from the Internet and passing them directly to the Arduino.

Bridge allows communication in both directions, acting as an interface to the the Linux command line.

There's a plenty number of classes which you can use. 
The following list shows all function of all classes available.

Related Functions

Bridge Class


Process enables the ability to launch processes on the Linux side and many other things like shell scripts. 


Console is used to communicate with the network monitor in the Arduino IDE through a shell. 


This library allows to handle the Linux file system. For example, it can be used to read/write files on the SD card.


An asynchronous, sessionless interface for communicating between Linux and Arduino. 


Creates a HTTP client on Linux. It extends Process and can be used to make request using the curl tool. 


An Arduino based HTTP client, modeled after the EthernetClient class. 


An Arduino based HTTP server, modeled after the EthernetServer class.

Based on the reference originally written by Arduino Community, and