-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
|
||
message LightControl { | ||
enum Method { | ||
POST = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hue uses PUT
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will add.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
I meant to have the server provide the IP and the entire http request,
headers and all. Then the method would be whatever is indicated in those
headers.
…On Wed, Nov 30, 2016, 5:16 PM Jackson Chen ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In messeji/audio_commands.proto
<#138 (review)>:
> @@ -20,3 +20,12 @@ message Volume {
message VoiceControl {
required bool enable = 1;
}
+
+message LightControl {
+ enum Method {
+ POST = 0;
+ }
+ required string url = 1;
#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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#138 (review)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHR0tA0xEh505xjQ8lnx3bsDe5W9S0I1ks5rDiADgaJpZM4LA4Wq>
.
|
@plasticchris does this work for you? |
There was a problem hiding this 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
cc @plasticchris