working ethernet version
This commit is contained in:
10
src/e131.h
10
src/e131.h
@ -26,13 +26,15 @@
|
||||
#include "Arduino.h"
|
||||
|
||||
/* Network interface detection. WiFi for ESP8266 and Ethernet for AVR */
|
||||
# include <WiFi.h>
|
||||
//# include <WiFi.h>
|
||||
//# include <WiFiMulti.h>
|
||||
//# include <WiFiUdp.h>
|
||||
# include <W5500lwIP.h>
|
||||
# include <lwip/ip_addr.h>
|
||||
# include <lwip/igmp.h>
|
||||
# define _UDP WiFiUDP
|
||||
# define INT_WIFI
|
||||
# define INT_ETHERNET
|
||||
|
||||
|
||||
#define NO_DOUBLE_BUFFER 1
|
||||
/* Defaults */
|
||||
@ -179,9 +181,7 @@ class E131 {
|
||||
/****** START - Ethernet ifdef block ******/
|
||||
#if defined (INT_ETHERNET)
|
||||
/* Unicast Ethernet Initializers */
|
||||
int begin(uint8_t *mac);
|
||||
void begin(uint8_t *mac,
|
||||
IPAddress ip, IPAddress netmask, IPAddress gateway, IPAddress dns);
|
||||
int begin();
|
||||
|
||||
/* Multicast Ethernet Initializers */
|
||||
int beginMulticast(uint8_t *mac, uint16_t universe, uint8_t n = 1);
|
||||
|
Reference in New Issue
Block a user