@aansi/spool 中文文档教程

发布于 7年前 浏览 29 项目主页 更新于 3年前

#

Welcome to Spool Node

node-red-contrib-spool

一个 Node-RED 节点,用于存储未传送的出站消息并将其从串行设备传送到代理。

Overview

该节点的主要目标是通过将其存储在 sqlite 数据库中并在代理处于活动状态或重新连接后将消息重新发送到代理,以防止在代理停机期间丢失任何出站消息。 在 Linux、Windows 和 MacOS 等不同操作系统上安装相对容易。

Installation

按照说明安装 node-red-contrib-spool

> cd $HOME/.node-red

> npm install @aansi/spool

或者 您可以按照 Node-RED 入门文档 中的添加节点说明进行操作。

Usage

要实施此节点,请启动或重新启动 Node-RED(请参阅文档 了解入门信息)。 假脱机节点的示例流程如下所示。 您还可以通过复制给定的 Example(json 格式)并将其导入您的 Node-RED。

alt Spool Flow

TODO

根据用户输入创建数据库

实施其他消息协议,如 UDP

Licence

版权所有 (c) 2017 Alisha Maharjan、Anisha Shrestha 和 Nita Regmi

根据 GPLv3 条款获得许可 GPLv3

本软件由版权持有者和贡献者“按原样”提供,不提供任何明示或暗示的保证,包括但不限于对适销性和特定用途适用性的暗示保证。 在任何情况下,版权所有者均不对任何直接、间接、偶然、特殊、惩戒性或后果性损害(包括但不限于替代商品或服务的采购;使用、数据或利润损失;或业务损失)负责中断),无论是基于任何责任理论,无论是合同、严格责任还是侵权行为(包括疏忽或其他),以任何方式因使用本软件而引起,即使已被告知发生此类损害的可能性。

Contributors

Alisha Maharjan

Anisha Shrestha

Nita Regmi

Acknowledgements

我们要感谢 Damien Clark 的贡献,他在整个项目中指导了我们。

#

Welcome to Spool Node

node-red-contrib-spool

A Node-RED node for storing and delivering the undelivered outbound messages from the serial devices to the broker.

Overview

The main objective of this node is to prevent the loss of any outbound messages during the brokers' downtime by storing it in the sqlite database and re sending the messages to the broker once it is active or reconnected. It is relatively easy to install on different operating system such as Linux, Windows and MacOS.

Installation

Install node-red-contrib-spool by following the instructions

> cd $HOME/.node-red

> npm install @aansi/spool

Or You can follow the adding nodes instructions from the Node-RED Getting Started Documentation.

Usage

To implement this node, start or restart the Node-RED (See the Documentation for getting started). The example flow for the spool node is illustrated below. You can also re-create this flow by copying the given Example (json format) and importing it in your Node-RED.

alt Spool Flow

TODO

Creation of database based on user input

Implementation of other messaging protocol such as UDP

Licence

Copyright (c) 2017 Alisha Maharjan, Anisha Shrestha and Nita Regmi

Licenced under the terms of the GPLv3 GPLv3

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Contributors

Alisha Maharjan

Anisha Shrestha

Nita Regmi

Acknowledgements

We would like to acknowledge the contribution of Damien Clark who have guided us throughout this project.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文