Update CloudService.java

Signed-off-by: Pasquale Pizzuti <paspiz85@users.noreply.github.com>
pull/16477/head
Pasquale Pizzuti 2024-03-02 20:04:51 +01:00 committed by GitHub
parent f165d43459
commit c83f6f8cfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -107,6 +107,13 @@ public class CloudService implements ActionService, CloudClientListener, EventSu
this.eventPublisher = eventPublisher;
}
/**
* Returns true if openHAB Cloud connection is active
*/
public boolean isConnected() {
return cloudClient.isConnected();
}
/**
* This method sends notification message to mobile app through the openHAB Cloud service
*