Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LightControl message #138

Merged
merged 3 commits into from
Dec 1, 2016
Merged

Add LightControl message #138

merged 3 commits into from
Dec 1, 2016

Conversation

pims
Copy link
Contributor

@pims pims commented Dec 1, 2016

@pims pims mentioned this pull request Dec 1, 2016

message LightControl {
enum Method {
POST = 0;
Copy link
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
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
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
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
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

enum Method {
POST = 0;
}
required string url = 1;
Copy link
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
Copy link
Contributor

plasticchris commented Dec 1, 2016 via email

@pims
Copy link
Contributor Author

pims commented Dec 1, 2016

@plasticchris does this work for you?

Copy link
Contributor

@plasticchris plasticchris left a comment

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