Skip to content

Conversation

@ccutrer
Copy link
Member

@ccutrer ccutrer commented Feb 12, 2019

some minor optimizations to reduce the /accessories response size

 * events is actually called ev
 * there is no bonjour field
HAP spec allows shortening UUIDs if they're well known Apple ones
doing this drastically reduces response sizes
Copy link
Collaborator

@andylintner andylintner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to allow both long and short ids - there is support in the spec for custom types. Can you change this to use the long id if it doesn't match the expression?

@ccutrer
Copy link
Member Author

ccutrer commented Feb 12, 2019

It already does. Non-Apple IDs won't match the regex, so will not have any replacements done, returning the original string (I tested this).

@andylintner
Copy link
Collaborator

Huh, just read the javadoc on replaceAll - you're right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants