1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
Commit Graph

209 Commits

Author SHA1 Message Date
Stephen McLaughlin
437c29525d
new features: Add Triggered Mode to Ping Node (#643) 2020-04-03 16:07:41 +01:00
Dave Conway-Jones
a57de3d8f2
Fix serialport to not try to log error and tell user instead
to close #637
2020-03-27 11:36:18 +00:00
Dave Conway-Jones
bf089ec18c
bump mdns / discovery package 2020-02-04 19:12:43 +00:00
Dave Conway-Jones
03c4426189
add to mdns/discovery pre-reqs in readme 2020-02-04 19:09:53 +00:00
Dave Conway-Jones
54c52a7106
add comment re numerics to snmp set node. 2019-12-23 16:21:09 +00:00
Dave Conway-Jones
676ba58210
slight tidy to serialport PR and bump version
adds flags for fixing DSR, DTR, RTS, CTS
2019-12-04 15:06:40 +00:00
d-tamm
ae2d601b22 Add flow control switches to serialport (#579)
* Fix alignment of baud rate setting.

* Add flow control flags DTR and RTS.

* Add flags for flow control RTS and DTR.

* Add pin states for flow control flags

* Change pinstates to linestates

* Remove help text about DTR/RTS defaulting to low.

* Collect flow control setting into one single command.

* Add curly braces.

* Add more curly braces.

* Add CTS and DSR settings. Add default none option. Change settings layout for flow control.
2019-12-04 14:03:58 +00:00
Dave Conway-Jones
23f584268a
Fix serialport so can't report false addchar 2019-12-01 17:55:08 +00:00
Dave Conway-Jones
649ec33b80
tidy and republish WOL node 2019-11-25 14:30:42 +00:00
SillaRizzoli
dfddf0645a Added UDP port option to node-red-node-wol (#606)
* Added udp port option

* Added UDP port validation and msg.udpport support
2019-11-25 14:17:36 +00:00
Dave Conway-Jones
0bef668028
fix button class and serial.list promise 2019-11-13 18:43:43 +00:00
Dave Conway-Jones
3ed1e72481
Bump serialport node to latest serialport lib 2019-11-13 13:31:41 +00:00
Dave Conway-Jones
a146c8e28c
snmp set Add check if varbinds field may be empty 2019-11-06 09:30:46 +00:00
Dave Conway-Jones
b9cf6d88e9
bump ping package to 0.1 to include i18n 2019-10-26 13:07:44 +01:00
Ryoichi Obara
97a1352afc [ja] Translate 88-ping help text. (#589) 2019-10-26 12:54:17 +01:00
Nick O'Leary
18f42be574
Fix snmp node to clone response before sending 2019-10-05 19:36:20 +01:00
Dave Conway-Jones
aa2965f000
move serialport to new netwrok category (for 1.0) 2019-09-30 09:46:48 +01:00
Dave Conway-Jones
a266d372b2
Serial port only report close error once 2019-09-09 23:05:10 +01:00
Dave Conway-Jones
1f0aa6908c
serialport addchar whenever needed - not only in char mode 2019-08-30 14:47:24 +01:00
Dave Conway-Jones
b0c8b0f2c6
fix serialport additional char in request mode 2019-08-30 13:02:21 +01:00
Dave Conway-Jones
e20cf97fce
A whole bunch of whitespace linting - no functional changes 2019-08-11 13:37:15 +01:00
Dave Conway-Jones
8e2352b08a
revert snmp lib back to previous working version. 2019-08-11 10:48:05 +01:00
Dave Conway-Jones
af4eefa5fb
revert changes to WOL node, bump package
to close #528
2019-05-26 14:52:19 +01:00
Dave Conway-Jones
344d2bfdde
Fix serialport split on hex char
to close #541
2019-05-13 13:01:36 +01:00
Dave Conway-Jones
d40f433332
remove extraneous debug messages from serialport 2019-04-11 16:33:17 +01:00
Dave Conway-Jones
0b11d68c02
Let serialport wiatfor a char before starting output 2019-04-04 22:20:21 +01:00
Dave Conway-Jones
b91f61d56f
Add serialport request node to readme (docs only) 2019-03-06 17:45:45 +00:00
Dave Conway-Jones
9bfce43b1f
Bump mdns package version for discovery node 2019-02-27 21:12:51 +00:00
Dave Conway-Jones
3d06102d1e
Clarify tha snmp node oids must be numeric
docs only
2019-02-15 22:15:33 +00:00
Dave Conway-Jones
602586ad82
Bump serialport to latest 0.7 2019-02-12 13:31:06 +00:00
Dave Conway-Jones
73e4ae574c
Set WOL node to use more generic broadcast address byt default 2018-12-09 11:01:18 +00:00
Dave Conway-Jones
d0f36dcda1
update ping node readme
(how to run in snap)
2018-12-07 16:55:16 +00:00
Dave Conway-Jones
89d7853891
Better error catching in ping node for spawn errors... 2018-12-05 13:46:08 +00:00
Dave Conway-Jones
739e8cd9b6
bump stomp package to pick up PR fix for bad msg reuse 2018-11-28 18:42:44 +00:00
Arnaud Marchand
d73d5f1af3 Save point (#506) 2018-11-28 18:39:52 +00:00
Dave Conway-Jones
a5f29e3445
bump wake on lan package 2018-09-13 12:00:53 -04:00
rappsi
8d77028b4a Update 39-wol.js (#488)
allow lowwercase letters in MAC adress
2018-09-13 11:53:50 -04:00
Dave Conway-Jones
85ddffb98f
Ensure stomp retconnect retry default
to close #478
2018-08-15 22:17:32 +01:00
Dave Conway-Jones
73a7b2bc41
bump serialport version 2018-08-11 14:06:25 +01:00
Dave Conway-Jones
8f83e471b8
let snmp nodes specify optional :port
to close #462
2018-07-17 09:41:52 +01:00
iurly
27a1038993 Serial request (#426)
* serial: simplify serialPool.get

serialPool.get() has a lot of arguments.
Just pass the whole serialConfig object instead.
Also introduce early termination to remove one level of indentation.
(Just set your diff tool to ignore all whitespace changes to see
how very little this patch changes)

* serial: move splitting logic onto serialPool

All SerialIn and SerialOut nodes for a given port
share the same splitting logic as it is indeed
set by the common configuration node.

Move the code from SerialIn into serialPool so that
it can be reused by the serial request node.
Notice how the 'data' event will no longer carry
single bytes, but the whole payload instead.

Also move the output encoding logic into serialPool.

* serial: add serial request node

Add a "serial request" node to handle simple request/response
protocols. This node allows for multiple instances, all
sharing the same underlying device.
Responses coming from the serial line will only be propagated
to the output of the node where the request was originally received
(contrary to the "serial in" nodes which all emit the data
received from the serial line).

Every request received as an input to the node, is transmitted
to the serial line, and a matching response must be received
before the next one can be transmitted.
Any input message received in the meantime is internally enqueued.

The node is essentially a merge of serial in and serial out.
It shares the same configuration with serial in and serial out
for any given port and will not affect the behavior of the
existing nodes.
This means you can use, alongside with the request node:
- as many serial in nodes as you want -- e.g. to "sniff"
- serial out to inject mailicious/tampering data onto the serial
  line, skipping the queueing mechanism

* serial request: provide some visual feedback on the node

add status indication:
- yellow "waiting" when a message is enqueued for sending
- green "OK" after an answer is received
- red "timeout" after a timeout occurs

More sofisticated output would include an indication of the number of messages
enqueued and the actual timeout remaining after sending.

* serial request: make default response timeout configurable

Notice it's a global setting (i.e. stored in the configuration node)
as opposed to per-node, but it can be overridden by setting msg.timeout.

* serial request: cosmetic changes

- added documentation about msg.port
- timeout field made wider so to accommodate default value of 10000ms
- replaced harcoded text with localizable strings for
  "waiting" and "timeout" messages

* serial: cleanup: remove node.tout

this was probably some leftover code from previous implementations.
Now all timeouts are handled within the connection objects.

* serial: cleanup: set obj.tout to null after clearing it

clearing a Timeout without setting it back to null *might* have
adverse effects on later code which would check its null-ity.
Let's just do it.

* serial: cosmetic: add some comments

* serial request: fix "split on timeout" case

In the case of "split on timeout" case, we're reusing the same
.tout for two different purposes:
1) to send a timeout message, in case no answer is received at all [request]
2) to split messages, after receiving the first character [in+request]

So in the case of serial request, checking whether .tout is already
set is no longer a valid condition for 2).
Let's just check whether i === 1, and clear the timeout set up by 1)
if it's already there.

* serial: add "split on silence" behavior

add a fourth logic to split incoming data into messages.
The existing "split on timeout" logic starts the timeout upon
reception of the first character.
This might lead to unwanted behavior if for instance Node-RED is
restarted, as data might accumulate into OS buffers (see #410).
A different logic might be to only emit a message when enough time
has passed, without any new data being received (line silent), a.k.a.
interbyte timeout.
2018-07-09 11:14:08 +01:00
Dave Conway-Jones
76a221919a
Update Readme to remove NMA node
and add 2018 to serialport copyright
2018-06-13 22:13:22 +01:00
Dave Conway-Jones
997458c78e
Fix serial port add char logic
to close #450
2018-06-02 13:24:57 +01:00
Dave Conway-Jones
dca9dfccc1
bump serial port and arduino nodes 2018-05-09 22:04:29 +01:00
Dave Conway-Jones
025f97206f
tidy some labels 2018-04-14 22:43:14 +01:00
borpin
99b83ea4bd io/emoncms - Modify HTTP Timeout (#430)
* Modify HTTP timeout

Increase the HTTP Timeout values from 1000 to 6000.
Modify error message.
2018-04-10 12:19:41 +01:00
borpin
cf48039427 Improve HTTP response handling and error reporting (#419)
Improve HTTP response handling and error reporting of emoncms node
2018-03-29 08:53:12 +01:00
Dave Conway-Jones
0253f67882
Add msg.port to serial port input node 2018-03-01 18:21:22 +00:00
Dave Conway-Jones
127fb6ac0c
clarify serial port timeout doc info 2018-02-19 19:21:52 +00:00
Dave Conway-Jones
a89379c631
add android platform to ping node
to close #402 by hand
2018-02-08 15:44:38 +00:00