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;
|
||||
|
||||
|
||||
my $version = "1.2.4";
|
||||
my $version = "1.2.5";
|
||||
my %CallBatteryFirmwareAge = ( '8h' => 28800,
|
||||
'16h' => 57600,
|
||||
'24h' => 86400,
|
||||
@ -663,7 +663,10 @@ sub XiaomiFlowerSens_ProcessingErrors($$) {
|
||||
sub XiaomiFlowerSens_encodeJSON($) {
|
||||
|
||||
my $gtResult = shift;
|
||||
|
||||
|
||||
|
||||
chomp($gtResult);
|
||||
|
||||
my %response = (
|
||||
'gtResult' => $gtResult
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user