Skip to content

Commit

Permalink
Minimal documentation on how to build Modbus demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Jul 17, 2024
1 parent 06cc99d commit afd9b88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions examples/opcua_server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:floppy_disk: `opcua_server.ino`
================================

### How-to-build Modbus MD02 demo
```bash
arduino-cli compile --fqbn arduino:mbed_opta:opta examples/opcua_server -v --build-property compiler.cpp.extra_flags="-DUSE_MODBUS_SENSOR_MD02=1"
```
4 changes: 0 additions & 4 deletions examples/opcua_server/opcua_server.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
#include "mbed_mem_trace.h"
#endif

#ifndef USE_MODBUS_SENSOR_MD02
# define USE_MODBUS_SENSOR_MD02 (1)
#endif

#if USE_MODBUS_SENSOR_MD02
# include <ArduinoRS485.h>
# include <ArduinoModbus.h>
Expand Down

0 comments on commit afd9b88

Please sign in to comment.