File tree 3 files changed +16
-9
lines changed
3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 14
14
</ div >
15
15
</ script >
16
16
17
- < script type ="text/x-red " data-help-name ="ping ">
18
- < p > Pings a machine and returns the trip time in mS as < code > msg.payload</ code > .</ p >
19
- < p > Returns < b > false < / b > i f n o r e s p o n s e r e c e i v e d w i t h i n 5 s e c o n d s , o r i f t h e h o s t i s u n r e s o l v e a b l e .< / p>
20
- < p > Default ping is every 20 seconds but can be configured.</ p >
21
- < p > < code > msg.topic</ code > contains the target host ip . < / p >
22
- < p > Note: if running inside Ubuntu Snap you will need to manually start the network-observe interface.
23
- `snap connect node-red:network-observe`</ p >
24
- </ script >
25
-
26
17
< script type ="text/javascript ">
27
18
RED . nodes . registerType ( 'ping' , {
28
19
category : 'network-input' ,
Original file line number Diff line number Diff line change
1
+ < script type ="text/x-red " data-help-name ="ping ">
2
+ < p > Pings a machine and returns the trip time in mS as < code > msg.payload</ code > .</ p >
3
+ < p > Returns < b > false < / b > i f n o r e s p o n s e r e c e i v e d w i t h i n 5 s e c o n d s , o r i f t h e h o s t i s u n r e s o l v e a b l e .< / p>
4
+ < p > Default ping is every 20 seconds but can be configured.</ p >
5
+ < p > < code > msg.topic</ code > contains the target host ip . < / p >
6
+ < p > Note: if running inside Ubuntu Snap you will need to manually start the network-observe interface.
7
+ `snap connect node-red:network-observe`</ p >
8
+ </ script >
Original file line number Diff line number Diff line change
1
+ < script type ="text/x-red " data-help-name ="ping ">
2
+ < p > pingを送信し、< code > msg.payload</ code > にラウンドトリップタイムをミリ秒で返します。</ p >
3
+ < p > 5 秒以内にホスト名が解決できなかったり、レスポンスが得られなければ、 < b > false < / b > を 返 し ま す 。 < / p>
4
+ < p > デフォルトでは20秒ごとにpingを送りますが、設定で変更できます。</ p >
5
+ < p > < code > msg.topic</ code > には対象に設定したホスト名やIPアドレスが含まれます。 < / p >
6
+ < p > 補足: Ubuntu Snap内で実行している場合は、手動でnetwork-observeを開始する必要があります。
7
+ `snap connect node-red:network-observe`</ p >
8
+ </ script >
You can’t perform that action at this time.
0 commit comments