ECMD serial definition added in commandref.html

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@876 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2011-03-25 18:32:43 +00:00
parent de6eec06f1
commit 2c070c3ac3

View File

@ -3830,14 +3830,19 @@ Attributes:<br>
<a name="ECMDdefine"></a> <a name="ECMDdefine"></a>
<b>Define</b> <b>Define</b>
<ul> <ul>
<code>define &lt;name&gt; ECMD telnet &lt;IPAddress:Port&gt;</code> <code>define &lt;name&gt; ECMD telnet &lt;IPAddress:Port&gt;</code><br><br>
or<br><br>
<code>define &lt;name&gt; ECMD serial &lt;SerialDevice&gt;[&lt;@BaudRate&gt;]</code>
<br><br> <br><br>
Defines a physical ECMD device. The keyword <code>telnet</code> is fixed.<br><br> Defines a physical ECMD device. The keywords <code>telnet</code> or
<code>serial</code> are fixed.<br><br>
Example: Examples:
<ul> <ul>
<code>define AVRNETIO ECMD telnet 192.168.0.91:2701</code><br> <code>define AVRNETIO ECMD telnet 192.168.0.91:2701</code><br>
<code>define AVRNETIO ECMD serial /dev/ttyS0</code><br>
<code>define AVRNETIO ECMD serial /sev/ttyUSB0@38400</code><br>
</ul> </ul>
<br> <br>
</ul> </ul>
@ -4023,7 +4028,7 @@ Attributes:<br>
<code> <code>
define AVRNETIO telnet 192.168.0.91:2701 # define the physical device<br> define AVRNETIO telnet 192.168.0.91:2701 # define the physical device<br>
set AVRNETIO classdef ADC /etc/fhem/ADC.classdef # define the device class ADC<br> set AVRNETIO classdef ADC /etc/fhem/ADC.classdef # define the device class ADC<br>
define myADC ADC # define the logical device myADC with device cass ADC<br> define myADC ADC # define the logical device myADC with device class ADC<br>
get myADC value 1 # retrieve the value of analog/digital converter number 1<br> get myADC value 1 # retrieve the value of analog/digital converter number 1<br>
</code> </code>
<br> <br>