We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec9900e commit 4f28236Copy full SHA for 4f28236
arduino-modbus-rtu-tcp-gateway/arduino-modbus-rtu-tcp-gateway.ino
@@ -47,8 +47,10 @@ typedef struct {
47
byte ip[4];
48
byte subnet[4];
49
byte gateway[4];
50
+#ifdef ENABLE_DHCP
51
byte dns[4]; // only used if ENABLE_DHCP
52
bool enableDhcp; // only used if ENABLE_DHCP
53
+#endif
54
uint16_t tcpPort;
55
uint16_t udpPort;
56
uint16_t webPort;
@@ -67,8 +69,10 @@ const config_t DEFAULT_CONFIG = {
67
69
DEFAULT_STATIC_IP,
68
70
DEFAULT_SUBMASK,
71
DEFAULT_GATEWAY,
72
73
DEFAULT_DNS,
74
DEFAULT_AUTO_IP,
75
76
DEFAULT_TCP_PORT,
77
DEFAULT_UDP_PORT,
78
DEFAULT_WEB_PORT,
0 commit comments