From a375391c00844c62208ffe849d7bea95e8f64c3a Mon Sep 17 00:00:00 2001 From: ntruchsess <> Date: Sat, 9 Nov 2013 14:10:23 +0000 Subject: [PATCH] FRM: allow to detect multiple pins per device git-svn-id: https://svn.fhem.de/fhem/trunk@4190 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_FRM.pm | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/fhem/FHEM/10_FRM.pm b/fhem/FHEM/10_FRM.pm index be59c9b40..748fabd62 100755 --- a/fhem/FHEM/10_FRM.pm +++ b/fhem/FHEM/10_FRM.pm @@ -485,7 +485,8 @@ FRM_Client_AssignIOPort($) && defined( $dev->{IODev} ) && defined( $dev->{PIN} ) && $dev->{IODev} == $hash->{IODev} - && $dev->{PIN} == $hash->{PIN} ) { + && grep {$_ == $hash->{PIN}} split(" ",$dev->{PIN}) ) { + delete $hash->{IODev}; die "Device $main::defs{$d}{NAME} allready defined for pin $hash->{PIN}"; } } @@ -888,23 +889,27 @@ sub FRM_OWX_Discover ($) { defaults for the serial parameters, e.g. some Linux distributions and OSX.

- The Arduino has to run 'StandardFirmata'. You can find StandardFirmata - in the Arduino-IDE under 'Examples->Firmata->StandardFirmata

+ The Arduino has to run either 'StandardFirmata' or 'ConfigurableFirmata'. + StandardFirmata supports Digital and Analog-I/O, Servo and I2C. In addition + to that ConfigurableFirmata supports 1-Wire, Stepper-motors and allows to + connect via ethernet in client mode.

+ + You can find StandardFirmata in the Arduino-IDE under 'Examples->Firmata->StandardFirmata

+ ConfigurableFirmata has to be installed manualy. See + ConfigurableFirmata on GitHub or FHEM-Wiki
Network-connected devices:

If the device is called none, then no device will be opened, so you