• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

node-red / node-red-nodes / 748
49%

Build:
DEFAULT BRANCH: master
Ran 09 Jul 2018 10:15AM UTC
Jobs 2
Files 10
Run time 36s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
748

push

travis-ci

dceejay
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 enqueu... (continued)

399 of 608 branches covered (65.63%)

572 of 854 relevant lines covered (66.98%)

23.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 748.1 09 Jul 2018 10:15AM UTC 0
66.98
Travis Job 748.1
2 748.2 09 Jul 2018 10:15AM UTC 0
66.98
Travis Job 748.2
Source Files on build 748
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #748
  • 27a10389 on github
  • Prev Build on master (#747)
  • Next Build on master (#749)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc