fix error message then \n insert JSON String
This commit is contained in:
parent
7e08c559b9
commit
3e7eab52e3
@ -47,7 +47,7 @@ use JSON;
|
|||||||
use Blocking;
|
use Blocking;
|
||||||
|
|
||||||
|
|
||||||
my $version = "1.2.4";
|
my $version = "1.2.5";
|
||||||
my %CallBatteryFirmwareAge = ( '8h' => 28800,
|
my %CallBatteryFirmwareAge = ( '8h' => 28800,
|
||||||
'16h' => 57600,
|
'16h' => 57600,
|
||||||
'24h' => 86400,
|
'24h' => 86400,
|
||||||
@ -664,6 +664,9 @@ sub XiaomiFlowerSens_encodeJSON($) {
|
|||||||
|
|
||||||
my $gtResult = shift;
|
my $gtResult = shift;
|
||||||
|
|
||||||
|
|
||||||
|
chomp($gtResult);
|
||||||
|
|
||||||
my %response = (
|
my %response = (
|
||||||
'gtResult' => $gtResult
|
'gtResult' => $gtResult
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user