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 1ff8a4e commit 363bfe0Copy full SHA for 363bfe0
src/libmodbus/modbus-tcp-private.h
@@ -7,6 +7,12 @@
7
#ifndef MODBUS_TCP_PRIVATE_H
8
#define MODBUS_TCP_PRIVATE_H
9
10
+#ifdef ARDUINO
11
+#include <Arduino.h>
12
+#include <IPAddress.h>
13
+#include <Client.h>
14
+#endif
15
+
16
#define _MODBUS_TCP_HEADER_LENGTH 7
17
#define _MODBUS_TCP_PRESET_REQ_LENGTH 12
18
#define _MODBUS_TCP_PRESET_RSP_LENGTH 8
@@ -23,8 +29,13 @@ typedef struct _modbus_tcp {
23
29
uint16_t t_id;
24
30
/* TCP port */
25
31
int port;
32
33
+ IPAddress ip;
34
+ Client* client;
35
+#else
26
36
/* IP address */
27
37
char ip[16];
38
28
39
} modbus_tcp_t;
40
41
#define _MODBUS_TCP_PI_NODE_LENGTH 1025
0 commit comments