刚开始学习问的问题可能有点2,见谅
#include <SPI.h>
#include <Ethernet.h>
// the media access control (ethernet hardware) address for the shield:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
//the IP address for the shield:
byte ip[] = { 10, 0, 0, 177 };
void setup()
{
Ethernet.begin(mac, ip);
}
void loop () {}
这个程序的作用是不是仅仅是只建立了一个局域网端点,还是有什么其他作用?
Ethernet.begin(mac, ip,dns);为什么没有返回? |