mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
# Windows OS support
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4050 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7950e85dff
commit
8308630e0d
@ -1,8 +1,6 @@
|
|||||||
##############################################
|
##############################################
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
package main;
|
|
||||||
|
|
||||||
# by r.koenig at koeniglich.de
|
# by r.koenig at koeniglich.de
|
||||||
#
|
#
|
||||||
# This modules handles the communication with a TCM120 or TCM310 EnOcean
|
# This modules handles the communication with a TCM120 or TCM310 EnOcean
|
||||||
@ -18,9 +16,16 @@ package main;
|
|||||||
# Check Stick WriteRadio
|
# Check Stick WriteRadio
|
||||||
# Check Stick RSS
|
# Check Stick RSS
|
||||||
|
|
||||||
|
package main;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Time::HiRes qw(gettimeofday);
|
use Time::HiRes qw(gettimeofday);
|
||||||
|
if( $^O =~ /Win/ ) {
|
||||||
|
require Win32::SerialPort;
|
||||||
|
} else {
|
||||||
|
require Device::SerialPort;
|
||||||
|
}
|
||||||
|
|
||||||
sub TCM_Read($);
|
sub TCM_Read($);
|
||||||
sub TCM_ReadAnswer($$);
|
sub TCM_ReadAnswer($$);
|
||||||
@ -828,6 +833,7 @@ TCM_Undef($$)
|
|||||||
<ul><code>
|
<ul><code>
|
||||||
define BscBor TCM 120 /dev/ttyACM0@9600<br>
|
define BscBor TCM 120 /dev/ttyACM0@9600<br>
|
||||||
define TCM310 TCM 310 /dev/ttyACM0@57600<br>
|
define TCM310 TCM 310 /dev/ttyACM0@57600<br>
|
||||||
|
define TCM310 TCM 310 COM1@57600 (Windows)<br>
|
||||||
</code></ul>
|
</code></ul>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user