|
...
|
...
|
@@ -111,7 +111,7 @@ while (my $mqttMessage = <$SUB> ) {
|
|
111
|
111
|
my ($sec,$min,$hour,$mday,$mon,$year)=localtime(time);
|
|
112
|
112
|
my $timestamp = sprintf ( "%04d-%02d-%02d %02d:%02d:%02d", $year+1900,$mon+1,$mday,$hour,$min,$sec);
|
|
113
|
113
|
addRF ($topic, $decoded->{'RfReceived'}{'Sync'}, $decoded->{'RfReceived'}{'Low'}, $decoded->{'RfReceived'}{'High'}, $decoded->{'RfReceived'}{'Data'}, $timestamp);
|
|
114
|
|
- my $script="php /admin/scripts/mqttparser/rf433.php $topic $decoded->{'RfReceived'}{'Data'}";
|
|
|
114
|
+ my $script="php /admin/scripts/mqttparser/rf433.php $topic $decoded->{'RfReceived'}{'Data'}\n";
|
|
115
|
115
|
runSCRIPT ($script);
|
|
116
|
116
|
}
|
|
117
|
117
|
}
|