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 06cc99d commit afd9b88Copy full SHA for afd9b88
examples/opcua_server/README.md
@@ -0,0 +1,7 @@
1
+:floppy_disk: `opcua_server.ino`
2
+================================
3
+
4
+### How-to-build Modbus MD02 demo
5
+```bash
6
+arduino-cli compile --fqbn arduino:mbed_opta:opta examples/opcua_server -v --build-property compiler.cpp.extra_flags="-DUSE_MODBUS_SENSOR_MD02=1"
7
+```
examples/opcua_server/opcua_server.ino
@@ -13,10 +13,6 @@
13
#include "mbed_mem_trace.h"
14
#endif
15
16
-#ifndef USE_MODBUS_SENSOR_MD02
17
-# define USE_MODBUS_SENSOR_MD02 (1)
18
-#endif
19
-
20
#if USE_MODBUS_SENSOR_MD02
21
# include <ArduinoRS485.h>
22
# include <ArduinoModbus.h>
0 commit comments