]> cvs.zerfleddert.de Git - rsbs2/blobdiff - rsbs2.pl
add correct handle to sensorpropget requests
[rsbs2] / rsbs2.pl
index fcd433eb80bb46cdef8db593a037cefc381aeb8e..022a9493931a2d94029be85491e2b40304c26e19 100755 (executable)
--- a/rsbs2.pl
+++ b/rsbs2.pl
@@ -385,7 +385,7 @@ sub get_sensors {
                return;
        }
 
-       my $req = '<REQ CMD="sensorpropget"><HANDLE>0x1</HANDLE><SENSORLIST>';
+       my $req = '<REQ CMD="sensorpropget"><HANDLE>'.$slist->{HANDLE}.'</HANDLE><SENSORLIST>';
        foreach my $s (@{$slist->{SENSORLIST}->{SENSOR}}) {
                $req .= '<SENSOR KEY="'.$s->{KEY}.'"/>';
        }
Impressum, Datenschutz