-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
often, HomeKit will will change multiple characteristics at once (on and set brightness of a dimmable bulb, for example) or change multiple items at once ("hey siri, close all the shades in the house"). instead of sending a separate event message for every characteristic of every item that changed, batch them all up, and send as a single message
- Loading branch information
Showing
4 changed files
with
101 additions
and
20 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/main/java/com/beowulfe/hap/impl/connections/PendingNotification.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,15 @@ | ||
package com.beowulfe.hap.impl.connections; | ||
|
||
import com.beowulfe.hap.characteristics.EventableCharacteristic; | ||
|
||
public class PendingNotification { | ||
public int aid; | ||
public int iid; | ||
public EventableCharacteristic characteristic; | ||
|
||
public PendingNotification(int aid, int iid, EventableCharacteristic characteristic) { | ||
this.aid = aid; | ||
this.iid = iid; | ||
this.characteristic = characteristic; | ||
} | ||
} |
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
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