Skip to content

Commit c5eb779

Browse files
authored
Merge pull request #22 from bcmi-labs/chore/rename-example
Rename firmware for OPC UA server capabilities to "opta_opcua_server"…
2 parents 07d76f3 + 75ab286 commit c5eb779

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ This library provides an implementation of [OPC UA](https://en.wikipedia.org/wik
99
Furthermore, the library supports automatic detection, configuration and exposure of up to two Arduino Opta Expansion Boards (i.e. Digital Expansion w/ mechanical relays [`D1608E`](https://store.arduino.cc/products/opta-ext-d1608e), Digital Expansion w/ solid-state relays [`D1608S`](https://store.arduino.cc/products/opta-ext-d1608e), Analog Expansion [`A0602`](https://store.arduino.cc/products/opta-ext-a0602)) via OPC UA.
1010

1111
### How-to-OPC UA
12-
* Compile and upload [`examples/opcua_server`](examples/opcua_server/opcua_server.ino)
12+
* Compile and upload [`examples/opta_opcua_server`](examples/opta_opcua_server/opta_opcua_server.ino)
1313
```bash
14-
arduino-cli compile --fqbn arduino:mbed_opta:opta -v examples/opcua_server -u -p /dev/ttyACM0
14+
arduino-cli compile --fqbn arduino:mbed_opta:opta -v examples/opta_opcua_server -u -p /dev/ttyACM0
1515
```
1616
* Connect Arduino Opta Ethernet port with a [DHCP](https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol)-enabled router, switch, etc.
1717
* Open a serial monitor
@@ -41,7 +41,8 @@ python3 -m pip install --upgrade pyopenssl
4141
python3 -m pip install --upgrade .
4242
```
4343

44-
### How-to-enable detailed heap/stack memory debugging information
44+
### Developer section
45+
#### How-to-enable detailed heap/stack memory debugging information
4546
* Edit [`variants/OPTA/conf/mbed_app.json`](https://github.com/arduino/ArduinoCore-mbed/blob/main/variants/OPTA/conf/mbed_app.json)
4647
```diff
4748
"target.macros_add": [

examples/opcua_server/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/opcua_server/opcua_server.ino renamed to examples/opta_opcua_server/opta_opcua_server.ino

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
* By compiling and uploading this sketch to your Arduino Opta you obtain turn your
3+
* Arduino Opta into a networked OPC UA capable device.
4+
*
5+
* How-to-build/upload:
6+
* arduino-cli compile --fqbn arduino:mbed_opta:opta examples/opta_opcua_server -v -u -p /dev/ttyACM0
7+
*
8+
* How-to-build/upload RS485 Modbus Demo integrated with this sketch:
9+
* arduino-cli compile --fqbn arduino:mbed_opta:opta examples/opta_opcua_server -v --build-property compiler.cpp.extra_flags="-DUSE_MODBUS_SENSOR_MD02=1" -u -p /dev/ttyACM0
10+
*/
11+
112
/**************************************************************************************
213
* INCLUDE
314
**************************************************************************************/

0 commit comments

Comments
 (0)