The WiFi and Ethernet interfaces, USB host, and SD card are all connected to the AR9331. The
Bridge library allows you to work with these devices, as well as run scripts and communicate
with web services.
The Console
The Console, based on Bridge, enables you to send information from the Yún to a computer just
as you would with the serial monitor, but wirelessly. It creates a secure connection between the
Yún and your computer via SSH.
Load the following onto your Yún :
#include <Console.h>
const int ledPin = 13; // the pin that the LED is attached to
int incomingByte; // a variable to read incoming serial data into
void setup() {
// initialize serial communication:
Bridge.begin();
Console.begin();
while (!Console){
; // wait for Console port to connect.
}
Console.println("You're connected to the Console!!!!");
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
}
void loop() {
// see if there's incoming serial data:
if (Console.available() > 0) {