-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnode-red-tcp-ping.html
66 lines (64 loc) · 1.75 KB
/
node-red-tcp-ping.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<script type="text/x-red" data-template-name="tcp-ping">
<div class="form-row">
<label for="node-input-ip"><i class="fa fa-globe"></i>IP Adress</label>
<input type="text" id="node-input-ip">
</div>
<div class="form-row">
<label for="node-input-port"><i class="fa fa-globe"></i>Port</label>
<input type="number" id="node-input-port">
</div>
<div class="form-row">
<label for="node-input-count"><i class="fa fa-globe"></i>Count</label>
<input type="number" id="node-input-count">
</div>
<div class="form-row">
<label for="node-input-interval"><i class="fa fa-globe"></i>Interval</label>
<input type="number" id="node-input-interval">
</div>
<div class="form-row">
<label for="node-input-timeout"><i class="fa fa-globe"></i>Timeout</label>
<input type="number" id="node-input-timeout">
</div>
<div class="form-row">
<label for="node-input-topic"><i class="icon-tag"></i> Topic</label>
<input type="text" id="node-input-topic" placeholder="" style="width: 70%;">
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="TCP Ping" style="width: 70%;">
</div>
</script>
<script type="text/javascript">
RED.nodes.registerType('tcp-ping', {
category: 'network',
color: '#cc66ff',
defaults: {
ip: {
value: ""
},
port: {
value: ""
},
count: {
value: ""
},
interval: {
value: ""
},
timeout: {
value: ""
},
topic: {
value: ""
},
name: {
value: ""
},
},
inputs: 1,
outputs: 1,
label: function () {
return this.name || "TCP Ping";
}
});
</script>