Skip to content

Commit

Permalink
🧹 add mql resource descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed May 28, 2023
1 parent 6820a54 commit c2cec00
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion resources/packs/opcua/info/opcua.lr.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"resources":{"opcua":{"id":"opcua","name":"opcua","fields":{"namespaces":{"name":"namespaces","type":"\u0019\u001bopcua.namespace","title":"Namespaces"},"nodes":{"name":"nodes","type":"\u0019\u001bopcua.node","title":"List of all nodes"},"root":{"name":"root","type":"\u001bopcua.node","title":"Root node"}},"title":"OPC UA"},"opcua.namespace":{"id":"opcua.namespace","name":"opcua.namespace","fields":{"id":{"name":"id","type":"\u0005","is_mandatory":true,"title":"Namespace ID"},"name":{"name":"name","type":"\u0007","is_mandatory":true,"title":"Namespace Name"}},"title":"OPC UA Namespace"},"opcua.node":{"id":"opcua.node","name":"opcua.node","fields":{"accessLevel":{"name":"accessLevel","type":"\u0007","is_mandatory":true},"class":{"name":"class","type":"\u0007","is_mandatory":true},"components":{"name":"components","type":"\u0019\u001bopcua.node"},"dataType":{"name":"dataType","type":"\u0007","is_mandatory":true},"description":{"name":"description","type":"\u0007","is_mandatory":true},"id":{"name":"id","type":"\u0007","is_mandatory":true},"max":{"name":"max","type":"\u0007","is_mandatory":true},"min":{"name":"min","type":"\u0007","is_mandatory":true},"name":{"name":"name","type":"\u0007","is_mandatory":true},"namespace":{"name":"namespace","type":"\u001bopcua.namespace"},"organizes":{"name":"organizes","type":"\u0019\u001bopcua.node"},"properties":{"name":"properties","type":"\u0019\u001bopcua.node"},"unit":{"name":"unit","type":"\u0007","is_mandatory":true},"writeable":{"name":"writeable","type":"\u0004","is_mandatory":true}},"title":"OPC UA Node","defaults":"id name"},"opcua.server":{"id":"opcua.server","name":"opcua.server","fields":{"buildInfo":{"name":"buildInfo","type":"\n","is_mandatory":true},"currentTime":{"name":"currentTime","type":"\t","is_mandatory":true},"node":{"name":"node","type":"\u001bopcua.node","is_mandatory":true},"startTime":{"name":"startTime","type":"\t","is_mandatory":true},"state":{"name":"state","type":"\u0007","is_mandatory":true}},"title":"Server Object"}}}
{"resources":{"opcua":{"id":"opcua","name":"opcua","fields":{"namespaces":{"name":"namespaces","type":"\u0019\u001bopcua.namespace","title":"Namespaces"},"nodes":{"name":"nodes","type":"\u0019\u001bopcua.node","title":"List of all nodes"},"root":{"name":"root","type":"\u001bopcua.node","title":"Root node"}},"title":"OPC UA"},"opcua.namespace":{"id":"opcua.namespace","name":"opcua.namespace","fields":{"id":{"name":"id","type":"\u0005","is_mandatory":true,"title":"Namespace ID"},"name":{"name":"name","type":"\u0007","is_mandatory":true,"title":"Namespace Name"}},"title":"OPC UA Namespace"},"opcua.node":{"id":"opcua.node","name":"opcua.node","fields":{"accessLevel":{"name":"accessLevel","type":"\u0007","is_mandatory":true,"title":"Access Level"},"class":{"name":"class","type":"\u0007","is_mandatory":true,"title":"Node class"},"components":{"name":"components","type":"\u0019\u001bopcua.node","title":"Components"},"dataType":{"name":"dataType","type":"\u0007","is_mandatory":true,"title":"Data Type"},"description":{"name":"description","type":"\u0007","is_mandatory":true,"title":"Node description"},"id":{"name":"id","type":"\u0007","is_mandatory":true,"title":"Node id"},"max":{"name":"max","type":"\u0007","is_mandatory":true,"title":"Max value"},"min":{"name":"min","type":"\u0007","is_mandatory":true,"title":"Min value"},"name":{"name":"name","type":"\u0007","is_mandatory":true,"title":"Node browser name"},"namespace":{"name":"namespace","type":"\u001bopcua.namespace","title":"Namespace"},"organizes":{"name":"organizes","type":"\u0019\u001bopcua.node","title":"Organizes"},"properties":{"name":"properties","type":"\u0019\u001bopcua.node","title":"Properties"},"unit":{"name":"unit","type":"\u0007","is_mandatory":true,"title":"Node unit"},"writeable":{"name":"writeable","type":"\u0004","is_mandatory":true,"title":"Indicates if value is writable"}},"title":"OPC UA Node","defaults":"id name"},"opcua.server":{"id":"opcua.server","name":"opcua.server","fields":{"buildInfo":{"name":"buildInfo","type":"\n","is_mandatory":true,"title":"Server build info"},"currentTime":{"name":"currentTime","type":"\t","is_mandatory":true,"title":"Current time on server"},"node":{"name":"node","type":"\u001bopcua.node","is_mandatory":true,"title":"Reference to node"},"startTime":{"name":"startTime","type":"\t","is_mandatory":true,"title":"Time when the server started"},"state":{"name":"state","type":"\u0007","is_mandatory":true,"title":"Server state"}},"title":"Server Object"}}}
38 changes: 19 additions & 19 deletions resources/packs/opcua/opcua.lr
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ opcua {

// Server Object
opcua.server {
//
// Reference to node
node opcua.node
//
// Server build info
buildInfo dict
//
// Current time on server
currentTime time
//
// Time when the server started
startTime time
//
// Server state
state string
}

Expand All @@ -34,32 +34,32 @@ opcua.namespace {

// OPC UA Node
opcua.node @defaults("id name") {
//
// Node id
id string
//
// Node browser name
name string
//
// Namespace
namespace() opcua.namespace
//
// Node class
class string
//
// Node description
description string
//
// Indicates if value is writable
writeable bool
//
// Data Type
dataType string
//
// Min value
min string
//
// Max value
max string
//
// Node unit
unit string
//
// Access Level
accessLevel string
//
// Properties
properties() []opcua.node
//
// Components
components() []opcua.node
//
// Organizes
organizes() []opcua.node
}

0 comments on commit c2cec00

Please sign in to comment.