-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send periodic ping requests to dirigera to prevent connection timeout
- Loading branch information
1 parent
e16bead
commit a1078b9
Showing
4 changed files
with
82 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...lient-api/src/main/java/de/dvdgeisler/iot/dirigera/client/api/model/events/PingEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package de.dvdgeisler.iot.dirigera.client.api.model.events; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
import static de.dvdgeisler.iot.dirigera.client.api.model.events.EventType.PING; | ||
|
||
public class PingEvent extends Event { | ||
public PingEvent(final String id, final LocalDateTime time, final String specversion, final String source) { | ||
super(id, time, specversion, source, PING, null); | ||
} | ||
|
||
public PingEvent() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters