Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
marcschier committed Oct 16, 2024
1 parent 7395986 commit 47aea46
Show file tree
Hide file tree
Showing 9 changed files with 302 additions and 90 deletions.
4 changes: 2 additions & 2 deletions docs/opc-publisher/directmethods.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ The certificate Key can also be read from the IoT Hub device twin as `__certifi
## GetApiKey_V2
This API call allows a caller to programmatically obtain the current API key. The API key is passed in the `Authorization` header of the HTTP request sent to the HTTP endpoint. The format of the header value is `ApiKey <api-key>`, e.g., `ApiKey 856F93F75DD847DE87E22953E7DFE478`.
This API call allows a caller to programmatically obtain the current API key. The API key is passed in the `Authorization` header of the HTTP request sent to the HTTP endpoint. The format of the header value is `ApiKey <api-key>`, e.g., `ApiKey 85....<redacted>.....F78`.
_Request_: follows strictly the request [payload schema](./definitions.md#publishednodesentrymodel), the `OpcNodes` attribute being mandatory.
Expand All @@ -107,7 +107,7 @@ This API call allows a caller to programmatically obtain the current API key. Th
> _Response_:
>
> ```json
> "856F93F75DD847DE87E22953E7DFE478"
> "85....<redacted>.....F78"
> ```
The API Key can also be read from the IoT Hub device twin as the `__apikey__` reported property.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@
<Content Include="Profiles\*.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="publishednodes.*">
<Content Include="Initfiles\*.init">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Remove="Initfiles\MachineTools.init" />
<None Remove="Initfiles\Objects.init" />
<None Remove="initfiles\Variables.init" />
<Content Include="publishednodes.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<None Remove="Profiles\NoNodes.json" />
</ItemGroup>
</Project>
20 changes: 20 additions & 0 deletions src/Azure.IIoT.OpcUa.Publisher.Module/cli/Initfiles/Machinery.init
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
###
// @delay 5
ExpandAndCreateOrUpdateDataSetWriterEntries

{
"entry": {
"EndpointUrl": "opc.tcp://opcua.umati.app:4840",
"UseSecurity": false,
"DataSetWriterGroup": "Machinery Objects",
"OpcNodes": [
{ "Id": "nsu=http://opcfoundation.org/UA/Machinery/;i=1001" }
]
}
}

// @retries 3
###
Shutdown
// @on-error
###
21 changes: 21 additions & 0 deletions src/Azure.IIoT.OpcUa.Publisher.Module/cli/Initfiles/Objects.init
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
###
// @delay 5
// @retries 3
ExpandAndCreateOrUpdateDataSetWriterEntries_V2

{
"entry": {
"EndpointUrl": "{{EndpointUrl}}",
"UseSecurity": false,
"DataSetWriterGroup": "Objects",
"OpcNodes": [
{ "Id": "i=85" }
]
}
}

###
# @on-error
Shutdown_V2
true
###
26 changes: 26 additions & 0 deletions src/Azure.IIoT.OpcUa.Publisher.Module/cli/Initfiles/Variables.init
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
###
// @delay 5
// @retries 3
ExpandAndCreateOrUpdateDataSetWriterEntries_V2

{
"entry": {
"EndpointUrl": "{{EndpointUrl}}",
"UseSecurity": false,
"DataSetWriterGroup": "Variables",
"OpcNodes": [
{ "Id": "i=85" }
]
},
"request": {
"createSingleWriter": true,
"maxDepth": 10,
"discardErrors": true
}
}

###
# @on-error
Shutdown_V2
true
###
Loading

0 comments on commit 47aea46

Please sign in to comment.