Skip to content

Commit afd9b88

Browse files
committed
Minimal documentation on how to build Modbus demo.
1 parent 06cc99d commit afd9b88

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

examples/opcua_server/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
#include "mbed_mem_trace.h"
1414
#endif
1515

16-
#ifndef USE_MODBUS_SENSOR_MD02
17-
# define USE_MODBUS_SENSOR_MD02 (1)
18-
#endif
19-
2016
#if USE_MODBUS_SENSOR_MD02
2117
# include <ArduinoRS485.h>
2218
# include <ArduinoModbus.h>

0 commit comments

Comments
 (0)