Skip to content

Add LightControl message#138

Merged
plasticchris merged 3 commits into
masterfrom
tim-hue
Dec 1, 2016
Merged

Add LightControl message#138
plasticchris merged 3 commits into
masterfrom
tim-hue

Conversation

@pims

@pims pims commented Dec 1, 2016

Copy link
Copy Markdown
Contributor

@pims pims mentioned this pull request Dec 1, 2016
Comment thread messeji/audio_commands.proto Outdated

message LightControl {
enum Method {
POST = 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hue uses PUT

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it might be better to let the body include the http headers, so this only needs the IP and the blob to send there

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

will add.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@plasticchris do you mean generating the entire socket stream?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we can reuse this message to post anything anywhere... good for botnets

Comment thread messeji/audio_commands.proto Outdated
enum Method {
POST = 0;
}
required string url = 1;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

#define HOST_LEN 32
#define PATH_LEN 64

FW has a limit on how long host and path can be. might be a good idea to cap them as an option.

@plasticchris

plasticchris commented Dec 1, 2016 via email

Copy link
Copy Markdown
Contributor

@pims

pims commented Dec 1, 2016

Copy link
Copy Markdown
Contributor Author

@plasticchris does this work for you?

@plasticchris plasticchris left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sure, may want a more general name in case we use it to control other ... things... later

@plasticchris plasticchris merged commit ad2ad5c into master Dec 1, 2016
@plasticchris plasticchris deleted the tim-hue branch December 1, 2016 19:51
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.

3 participants