mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
00_OWX.pm: Anpassung Definition von Firmata-Devices
git-svn-id: https://svn.fhem.de/fhem/trunk@15369 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8aceebbd97
commit
db796172c9
@ -95,7 +95,7 @@ use vars qw{%owg_family %gets %sets $owx_version $owx_debug};
|
||||
);
|
||||
|
||||
#-- some globals needed for the 1-Wire module
|
||||
$owx_version="7.02";
|
||||
$owx_version="7.03";
|
||||
|
||||
#-- debugging now verbosity, this is just for backward compatibility
|
||||
$owx_debug=0;
|
||||
@ -149,10 +149,10 @@ sub OWX_Define ($$) {
|
||||
|
||||
#-- check syntax
|
||||
if(int(@a) < 3){
|
||||
return "OWX: Syntax error - must be define <name> OWX <serial-device>|<ip-address>[:<port>]|<i2c-bus>:<i2c-addr>|<cuno/coc-device>|<arduino-pin>"
|
||||
return "OWX: Syntax error - must be define <name> OWX <serial-device>|<ip-address>[:<port>]|<i2c-bus>:<i2c-addr>|<cuno/coc-device>|<firmata-device>:<firmata-pin>"
|
||||
}
|
||||
|
||||
Log3 $hash->{NAME},2,"OWX: Warning - Some parameter(s) ignored, must be define <name> OWX <serial-device>|<ip-address>[:<port>]|<i2c-bus>:<i2c-addr>|<cuno/coc-device>|<arduino-pin>"
|
||||
Log3 $hash->{NAME},2,"OWX: Warning - Some parameter(s) ignored, must be define <name> OWX <serial-device>|<ip-address>[:<port>]|<i2c-bus>:<i2c-addr>|<cuno/coc-device>|<firmata-device>:<firmata-pin>"
|
||||
if( int(@a)>3 );
|
||||
my $dev = $a[2];
|
||||
|
||||
@ -193,7 +193,7 @@ sub OWX_Define ($$) {
|
||||
$hwdevice = OWX_CCC->new($hash);
|
||||
|
||||
#-- check if we are connecting to Arduino (via FRM):
|
||||
} elsif ($dev =~ /^\d{1,2}$/) {
|
||||
} elsif ($dev =~ /.*\:\d{1,2}$/) {
|
||||
require "$attr{global}{modpath}/FHEM/11_OWX_FRM.pm";
|
||||
$hwdevice = OWX_FRM->new($hash);
|
||||
|
||||
@ -1692,7 +1692,7 @@ sub OWX_WDBGL($$$$) {
|
||||
<br />
|
||||
<code>define OWio2 OWX COC</code>
|
||||
<br />
|
||||
<code>define OWio3 OWX 10</code>
|
||||
<code>define OWio3 OWX FIRMATA:10</code>
|
||||
<br />
|
||||
</p>
|
||||
<br />
|
||||
@ -1703,7 +1703,7 @@ sub OWX_WDBGL($$$$) {
|
||||
<code>define <name> OWX <tcpip>[:<port>]</code> or <br />
|
||||
# define <name> OWX <TCP/IP-device> for TCP/IP-UART interfaces or
|
||||
<code>define <name> OWX <cuno/coc-device></code> or <br />
|
||||
<code>define <name> OWX <arduino-pin></code>
|
||||
<code>define <name> OWX <firmata-device>:<firmata-pin></code>
|
||||
<br /><br /> Define a 1-Wire interface to communicate with a 1-Wire bus.<br />
|
||||
<br />
|
||||
</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user