diff --git a/examples/opcua_server/README.md b/examples/opcua_server/README.md new file mode 100644 index 0000000..003e523 --- /dev/null +++ b/examples/opcua_server/README.md @@ -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" +``` diff --git a/examples/opcua_server/opcua_server.ino b/examples/opcua_server/opcua_server.ino index ecd5e87..2b0cc45 100644 --- a/examples/opcua_server/opcua_server.ino +++ b/examples/opcua_server/opcua_server.ino @@ -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 # include