-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mod. messages and wait_for_server() in switchbot_ros_client.py to set…
… timeout.
- Loading branch information
Showing
4 changed files
with
26 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
string DEVICEMODE_PRESS = "pressMode" | ||
string DEVICEMODE_SWITCH = "switchMode" | ||
string DEVICEMODE_CUSTOMIZE = "customizeMode" | ||
|
||
Header header # timestamp | ||
|
||
float64 battery # the current battery level, 0-100 | ||
|
||
string power # ON/OFF state | ||
bool power # ON/OFF state True/False | ||
string device_mode # pressMode, switchMode, or customizeMode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
Header header # timestamp | ||
|
||
string power # ON/OFF state | ||
string color # the color value, RGB "255:255:255" | ||
bool power # ON/OFF state True/False | ||
|
||
int64 brightness # the brightness value, range from 1 to 100 | ||
int64 color_r # Red color value 0-255 | ||
int64 color_g # Green color value 0-255 | ||
int64 color_b # Blue color value 0-255 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters