Add support events for HomeKit client

This commit is contained in:
Alexey Khit
2023-09-12 21:03:59 +03:00
parent 9cf75565b5
commit 861632f92b
4 changed files with 61 additions and 69 deletions
+2 -1
View File
@@ -66,7 +66,8 @@ type JSONCharacters struct {
type JSONCharacter struct {
AID uint8 `json:"aid"`
IID uint64 `json:"iid"`
Value any `json:"value"`
Value any `json:"value,omitempty"`
Event any `json:"ev,omitempty"`
}
func SanitizePin(pin string) (string, error) {