Skip to content

Commit d113e3e

Browse files
authored
Merge pull request thingsboard#942 from volodymyr-babak/opc-ua-mapping-updates
Added details on OPC UA device node pattern regular expression mapping
2 parents c0d154f + 96fdb16 commit d113e3e

File tree

2 files changed

+6
-2
lines changed
  • _includes/docs/pe/user-guide/integrations
  • docs/pe/edge/user-guide/integrations

2 files changed

+6
-2
lines changed

_includes/docs/pe/user-guide/integrations/opc-ua.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ Specify such parameters:
203203

204204
- Mapping:
205205
- MappingType: Fully Qualified Name (can be *Fully Qualified Name* / *ID*)
206-
- Device Node Pattern: `Objects\.BuildingAutomation\.AirConditioner_\d+$` (regular expression used to match scanned OPC UA Node FQNs/IDs to device name.)
206+
- Device Node Pattern: `Objects\.BuildingAutomation\.AirConditioner_\d+$` (regular expression used to match scanned OPC UA Node FQNs/IDs to device name.
207+
In this sample, path on OPC UA Explorer is `Objects/BuildingAutomation/AirConditioner_X`, where X is a number from 1 to N.
208+
That's why we use `Objects\.BuildingAutomation\.AirConditioner_\d+$` as regular expression, because `\d+` means any number from 1 to *N*, and `$` means the end of the string)
207209
- Subscription tags (list of node tags (**Path**) to subscribe with mappings to keys (**Key**) used in the output message):
208210
- state - State
209211
- temperature - Temperature

docs/pe/edge/user-guide/integrations/opc-ua.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,10 @@ Here are the other integration field values:
310310
- Security: None (can be *Basic128Rsa15 / Basic256 / Basic256Sha256 / None*)
311311
- Identity: Anonymous (can be *Anonymous / Username*)
312312
- Mapping:
313-
- Device Node Pattern: `Objects\.BuildingAutomation\.AirConditioner_\d+$` (regular expression used to match scanned OPC UA Node FQNs/IDs to device name.)
314313
- MappingType: Fully Qualified Name (can be *Fully Qualified Name* / *ID*)
314+
- Device Node Pattern: `Objects\.BuildingAutomation\.AirConditioner_\d+$` (regular expression used to match scanned OPC UA Node FQNs/IDs to device name.
315+
In this sample, path on OPC UA Explorer is `Objects/BuildingAutomation/AirConditioner_X`, where X is a number from 1 to *N*.
316+
That's why we use `Objects\.BuildingAutomation\.AirConditioner_\d+$` as regular expression, because `\d+` means any number from 1 to *N*, and `$` means the end of the string)
315317
- Subscription tags (list of node tags (**Path**) to subscribe with mappings to keys (**Key**) used in the output message):
316318
- state - State
317319
- temperature - Temperature

0 commit comments

Comments
 (0)