node-red-contrib-smartnode-dfrobot
Version:
this project dependences the node-red-contrib-smartnode package for basic function. based on the smartnode package, this package provide some sersor nodes for DFRobot sensors.
33 lines (27 loc) • 1.55 kB
HTML
<!--
Copyright 2015 Maker Collider
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<script type="text/xred" data-help-name="DF-PM2.5">
<h3 id="edison-串口发送"><a name="edison-串口发送" href="#edison-串口发送"></a>Edison 串口发送</h3>
<p>本节点可以使用Edison的串口发送字符串</p>
<h4 id="配置参数"><a name="配置参数" href="#配置参数"></a>配置参数</h4>
<ol>
<li>Name:节点名字</li><li>SerialBaudrate: 串口波特率</li><li>SerialDatabits:数据位</li><li>SerialParity:校验位</li><li>SerialStopbits:停止位</li></ol>
<h4 id="输入"><a name="输入" href="#输入"></a>输入</h4>
<ol>
<li>msg.payload:待发送字符串</li></ol>
<h4 id="输出"><a name="输出" href="#输出"></a>输出</h4>
<p>无</p>
<h4 id="使用方法"><a name="使用方法" href="#使用方法"></a>使用方法</h4>
<ol>
<li>串口使用Arduino扩展板上的0,1管脚。</li><li>向节点传入<code>msg.payload</code>信息,节点每接收到一次就会发送一次。</li></ol>
</script>