Skip to content

Commit 07d76f3

Browse files
authored
Cleanup: OPC UA is written as "OPC UA" (not "OPC/UA") (#21)
Note: OPC UA is the acronym for OPC Unified Architecture, with OPC referring to the Open Platform Communications (Foundation).
1 parent e40dc6f commit 07d76f3

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
[![Arduino Lint](https://github.com/bcmi-labs/Arduino_OPC_UA/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/bcmi-labs/Arduino_OPC_UA/actions/workflows/arduino-lint.yml)
55
[![Sync Labels status](https://github.com/bcmi-labs/Arduino_OPC_UA/actions/workflows/sync-labels.yml/badge.svg)](https://github.com/bcmi-labs/Arduino_OPC_UA/actions/workflows/sync-labels.yml)
66

7-
This library provides an implementation of [OPC/UA](https://en.wikipedia.org/wiki/OPC_Unified_Architecture) by porting the Fraunhofer [`open62541`](https://github.com/open62541/open62541) for the Arduino [Opta](https://www.arduino.cc/pro/hardware-arduino-opta/) `microPLC` family.
7+
This library provides an implementation of [OPC UA](https://en.wikipedia.org/wiki/OPC_Unified_Architecture) by porting the Fraunhofer [`open62541`](https://github.com/open62541/open62541) for the Arduino [Opta](https://www.arduino.cc/pro/hardware-arduino-opta/) `microPLC` family.
88

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

11-
### How-to-OPC/UA
11+
### How-to-OPC UA
1212
* Compile and upload [`examples/opcua_server`](examples/opcua_server/opcua_server.ino)
1313
```bash
1414
arduino-cli compile --fqbn arduino:mbed_opta:opta -v examples/opcua_server -u -p /dev/ttyACM0
@@ -30,7 +30,7 @@ $ cat /dev/ttyACM0
3030
[2024-06-21 02:30:19.000 (UTC+0000)] info/network TCP 604353888 | Creating listen socket for "127.0.0.1" (with local hostname "192.168.8.137") on port 4840
3131
[2024-06-21 02:30:19.000 (UTC+0000)] info/server New DiscoveryUrl added: opc.tcp://192.168.8.137:4840
3232
```
33-
* Connect to OPC/UA server using IP/port as printed by the Arduino Opta
33+
* Connect to OPC UA server using IP/port as printed by the Arduino Opta
3434
![image](https://github.com/bcmi-labs/Arduino_OPC_UA/assets/3931733/ac153e79-6648-4808-9c4f-17aaf4305d89)
3535

3636
### How-to-`opcua-client-gui`

examples/opcua_server/opcua_server.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void setup()
117117
/* Try and obtain the current time via NTP and configure the Arduino
118118
* Opta's onboard RTC accordingly. The RTC is then used inside the
119119
* open62541 Arduino wrapper to obtain the correct timestamps for
120-
* the OPC/UA server.
120+
* the OPC UA server.
121121
*/
122122
EthernetUDP udp_client;
123123
auto const epoch = opcua::NTPUtils::getTime(udp_client);
@@ -148,11 +148,11 @@ void setup()
148148
/* Create a server listening on port 4840 (default) */
149149
opc_ua_server = UA_Server_new();
150150

151-
/* Printing OPC/UA server IP and port. */
151+
/* Printing OPC UA server IP and port. */
152152
UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_SERVER,
153153
"Arduino Opta IP: %s", Ethernet.localIP().toString().c_str());
154154

155-
/* Determine the Arduino OPC/UA hardware variant. */
155+
/* Determine the Arduino OPC UA hardware variant. */
156156
opcua::OptaVariant::Type opta_type;
157157
if (!opcua::OptaVariant::get_opta_variant(opta_type)) {
158158
UA_LOG_ERROR(UA_Log_Stdout, UA_LOGCATEGORY_SERVER, "opcua::OptaVariant::get_opta_variant(...) failed");
@@ -167,7 +167,7 @@ void setup()
167167
/* Configure analog solution to 12-Bit. */
168168
analogReadResolution(12);
169169

170-
/* Define the Arduino Opta as a OPC/UA object. */
170+
/* Define the Arduino Opta as a OPC UA object. */
171171
opta_opcua = opcua::Opta::create(opc_ua_server, opta_type);
172172
if (!opta_opcua) {
173173
UA_LOG_ERROR(UA_Log_Stdout, UA_LOGCATEGORY_SERVER, "opcua::Opta::create(...) failed");
@@ -231,7 +231,7 @@ void setup()
231231
opta_expansion_num = OPCUA_MAX_OPTA_EXPANSION_NUM;
232232
}
233233

234-
/* Expose Arduino Opta expansion module IO via OPC/UA. */
234+
/* Expose Arduino Opta expansion module IO via OPC UA. */
235235
for(uint8_t i = 0; i < opta_expansion_num; i++)
236236
{
237237
ExpansionType_t const exp_type = OptaController.getExpansionType(i);
@@ -244,7 +244,7 @@ void setup()
244244
else
245245
exp_dig = opta_expansion_manager_opcua->create_digital_solid_state_expansion(i);
246246

247-
/* Expose digital/analog pins via OPC/UA. */
247+
/* Expose digital/analog pins via OPC UA. */
248248
for (uint8_t d = 0; d < OPTA_DIGITAL_IN_NUM; d++)
249249
{
250250
char analog_in_name[32] = {0};
@@ -268,7 +268,7 @@ void setup()
268268
});
269269
}
270270

271-
/* Expose mechanical relays via OPC/UA. */
271+
/* Expose mechanical relays via OPC UA. */
272272
for (uint8_t r = 0; r < OPTA_DIGITAL_OUT_NUM; r++)
273273
{
274274
char mech_relay_name[32] = {0};

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name=Arduino_OPC_UA
22
version=0.0.1
33
author=Arduino <info@arduino.cc>
44
maintainer=Arduino <info@arduino.cc>
5-
sentence=Arduino port of the open62541 providing OPC/UA for Arduino Opta.
5+
sentence=Arduino port of the open62541 providing OPC UA for Arduino Opta.
66
paragraph=This library is an Arduino port of open62541, an open source implementation of OPC UA (OPC Unified Architecture / IEC 62541) written in the C language.
77
category=Communication
88
architectures=mbed_opta

0 commit comments

Comments
 (0)