Reference.EthernetBegin History

Hide minor edits - Show changes to markup

June 02, 2010, at 09:25 PM by Equipo Traduccion -
Changed lines 5-10 from:

Description

Initializes the ethernet library and network settings.

Syntax

to:

Descripción

Inicializa la librería Ethernet y la configuración de la red.

Sintaxis

Changed lines 15-30 from:

Parameters

mac: the MAC address for the device (array of 6 bytes)

ip: the IP address of the device (array of 4 bytes)

gateway: the IP address of the network gateway (array of 4 bytes). optional: defaults to the device IP address with the last octet set to 1

subnet: the subnet mask of the network (array of 4 bytes). optional: defaults to 255.255.255.0

Returns

None

Example

to:

Parámetros

mac: la dirección MAC del dispositivo (una secuencia -array- de 6 bytes)

ip: la dirección IP del dispositivo (una secuencua -array- de 4 bytes)

gateway: la dirección IP de la puerta de enlace de la red (una secuencia -array. de 4 bytes). pcional: usar por defecto la dirección Ip del dispositivo con el último octeto establecido como 1

subnet: la máscara de subred de la red (una secuencia -array- de 4 bytes). optional: usar por defecto 255.255.255.0

Respuesta

Ninguna

Ejemplo

February 11, 2009, at 08:13 PM by David Cuartielles -
Changed line 42 from:

void loop {}

to:

void loop () {}

September 02, 2008, at 10:34 PM by David A. Mellis -
Changed lines 1-2 from:
to:
September 02, 2008, at 10:34 PM by David A. Mellis -
Added lines 1-2:
September 02, 2008, at 10:21 PM by David A. Mellis -
Changed lines 9-12 from:

Ethernet.begin(mac, ip); Ethernet.begin(mac, ip, gateway); Ethernet.begin(mac, ip, gateway, subnet);

to:

Ethernet.begin(mac, ip);
Ethernet.begin(mac, ip, gateway);
Ethernet.begin(mac, ip, gateway, subnet);

September 02, 2008, at 10:19 PM by David A. Mellis -
Added lines 1-42:

Ethernet.begin()

Description

Initializes the ethernet library and network settings.

Syntax

Ethernet.begin(mac, ip); Ethernet.begin(mac, ip, gateway); Ethernet.begin(mac, ip, gateway, subnet);

Parameters

mac: the MAC address for the device (array of 6 bytes)

ip: the IP address of the device (array of 4 bytes)

gateway: the IP address of the network gateway (array of 4 bytes). optional: defaults to the device IP address with the last octet set to 1

subnet: the subnet mask of the network (array of 4 bytes). optional: defaults to 255.255.255.0

Returns

None

Example

#include <Ethernet.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 10, 0, 0, 177 };

void setup()
{
  Ethernet.begin(mac, ip);
}

void loop {}

Share