Hide minor edits - Show changes to markup
Initializes the ethernet library and network settings.
Inicializa la librería Ethernet y la configuración de la red.
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
None
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
Ninguna
void loop {}
void loop () {}
Ethernet.begin(mac, ip); Ethernet.begin(mac, ip, gateway); Ethernet.begin(mac, ip, gateway, subnet);
Ethernet.begin(mac, ip);
Ethernet.begin(mac, ip, gateway);
Ethernet.begin(mac, ip, gateway, subnet);
Initializes the ethernet library and network settings.
Ethernet.begin(mac, ip); Ethernet.begin(mac, ip, gateway); Ethernet.begin(mac, ip, gateway, subnet);
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
None
#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 {}