#include <Arduino.h>
#include <ETH.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
#include <SPI.h>
#include <WiFi.h>
Go to the source code of this file.
|
| IPAddress | staticIP (192, 168, 2, 100) |
| IPAddress | gateway (192, 168, 2, 1) |
| IPAddress | subnet (255, 255, 255, 0) |
| IPAddress | dns (192, 168, 2, 1) |
| IPAddress | receiverIP (192, 168, 2, 1) |
| const int | receiverPort = 5006 |
| EthernetUDP | udp |
| byte | mac [] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED} |
◆ ETH_CLK_PIN
◆ ETH_CS_PIN
◆ ETH_MISO_PIN
◆ ETH_MOSI_PIN
◆ ETH_PHY_ADDR
◆ loop()
◆ setup()
Definition at line 24 of file main.cpp.
References delay(), dns, ETH_CLK_PIN, ETH_CS_PIN, ETH_MISO_PIN, ETH_MOSI_PIN, Ethernet, gateway, mac, Serial, staticIP, subnet, and udp.
◆ dns
| IPAddress dns(192, 168, 2, 1) |
( |
192 | , |
|
|
168 | , |
|
|
2 | , |
|
|
1 | ) |
◆ gateway
| IPAddress gateway(192, 168, 2, 1) |
( |
192 | , |
|
|
168 | , |
|
|
2 | , |
|
|
1 | ) |
◆ mac
| byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED} |
◆ receiverIP
| IPAddress receiverIP(192, 168, 2, 1) |
( |
192 | , |
|
|
168 | , |
|
|
2 | , |
|
|
1 | ) |
◆ receiverPort
| const int receiverPort = 5006 |
◆ staticIP
| IPAddress staticIP(192, 168, 2, 100) |
( |
192 | , |
|
|
168 | , |
|
|
2 | , |
|
|
100 | ) |
◆ subnet
| IPAddress subnet(255, 255, 255, 0) |
( |
255 | , |
|
|
255 | , |
|
|
255 | , |
|
|
0 | ) |
◆ udp