Skip to content

Commit

Permalink
Merge pull request #22 from bcmi-labs/chore/rename-example
Browse files Browse the repository at this point in the history
Rename firmware for OPC UA server capabilities to "opta_opcua_server"…
  • Loading branch information
aentinger authored Sep 11, 2024
2 parents 07d76f3 + 75ab286 commit c5eb779
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ This library provides an implementation of [OPC UA](https://en.wikipedia.org/wik
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.

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

### How-to-enable detailed heap/stack memory debugging information
### Developer section
#### How-to-enable detailed heap/stack memory debugging information
* Edit [`variants/OPTA/conf/mbed_app.json`](https://github.com/arduino/ArduinoCore-mbed/blob/main/variants/OPTA/conf/mbed_app.json)
```diff
"target.macros_add": [
Expand Down
7 changes: 0 additions & 7 deletions examples/opcua_server/README.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* By compiling and uploading this sketch to your Arduino Opta you obtain turn your
* Arduino Opta into a networked OPC UA capable device.
*
* How-to-build/upload:
* arduino-cli compile --fqbn arduino:mbed_opta:opta examples/opta_opcua_server -v -u -p /dev/ttyACM0
*
* How-to-build/upload RS485 Modbus Demo integrated with this sketch:
* 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
*/

/**************************************************************************************
* INCLUDE
**************************************************************************************/
Expand Down

0 comments on commit c5eb779

Please sign in to comment.