https://hi-lab.ru/arduino-mega-server/a ... smart-flat
Обратите внимание, что в проекте НЕ используются Raspberry Pi, MajorDoMo, MQTT, MegaD и прочая «лабуда»
Модератор: Alex
Код: Выделить всё
#include <SPI.h>
#define CUSTOM_ETHERNET_LIB
#ifndef CUSTOM_ETHERNET_LIB
#include <Ethernet.h>
#else
#include <Ethernet2.h>
#endif
byte mac[] = {0x00, 0x2A, 0xF5, 0x12, 0x67, 0x5A};
byte ip[] = {192, 168, 1, 55};
void setup() {
Ethernet.begin(mac, ip);
}
void loop() {
}