-
Notifications
You must be signed in to change notification settings - Fork 0
/
opcua-subscription.html
32 lines (31 loc) · 1.17 KB
/
opcua-subscription.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<script type="text/javascript">
RED.nodes.registerType('opcua-subscription', {
category: 'opcuax',
color: '#a6bbcf',
defaults: {
client: { value: "", required: true, type: "opcua-client" },
nodeid: { required: true },
samplinginterval: { value: 100, required: true }
},
inputs: 0,
outputs: 1,
icon: "opcua-logo.png",
label: function () {
return this.defaults.client.name;
}
});
</script>
<script type="text/html" data-template-name="opcua-subscription">
<div class="form-row">
<label for="node-input-client"><i class="fa fa-plug"></i> Client</label>
<input type="text" id="node-input-client" placeholder="">
</div>
<div class="form-row">
<label for="node-input-nodeid"><i class="fa fa-link"></i> NodeId</label>
<input type="text" id="node-input-nodeid" placeholder="ns=*;i=*, ns=*;s=*">
</div>
<div class="form-row">
<label for="node-input-samplinginterval">Sampling Interval (ms)</label>
<input type="number" id="node-input-samplinginterval" placeholder="Interval in milliseconds">
</div>
</script>