InternalTimer
This commit is contained in:
parent
52e087f493
commit
4cccd0d32d
@ -234,8 +234,6 @@ sub SmartPi_Get($@) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
readingsSingleUpdate($hash,'state','fetch data',1);
|
|
||||||
|
|
||||||
SmartPi_GetData($hash,$phaseId,$valueId);
|
SmartPi_GetData($hash,$phaseId,$valueId);
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
@ -270,6 +268,8 @@ sub SmartPi_GetData($@) {
|
|||||||
my $uri = $host . ':' . $port . '/api/' . $phaseId . '/' . $valueId . '/now';
|
my $uri = $host . ':' . $port . '/api/' . $phaseId . '/' . $valueId . '/now';
|
||||||
|
|
||||||
|
|
||||||
|
readingsSingleUpdate($hash,'state','fetch data',1);
|
||||||
|
|
||||||
HttpUtils_NonblockingGet(
|
HttpUtils_NonblockingGet(
|
||||||
{
|
{
|
||||||
url => "http://" . $uri,
|
url => "http://" . $uri,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user