|
hueplusplus
1.0.0
|
Class for Hue Entertainment Mode. More...
#include <hueplusplus/EntertainmentMode.h>
Collaboration diagram for hueplusplus::EntertainmentMode:Public Member Functions | |
| EntertainmentMode (Bridge &b, Group &g) | |
| Constructor. More... | |
| ~EntertainmentMode () | |
| Destroy the Entertainment Mode object. More... | |
| bool | connect () |
| Connect and start streaming. More... | |
| bool | disconnect () |
| Disconnect and stop streaming. More... | |
| bool | setColorRGB (uint8_t light_index, uint8_t red, uint8_t green, uint8_t blue) |
| Set the color of the given light in RGB format. More... | |
| bool | update () |
| Update all set colors by setColorRGB. More... | |
Protected Attributes | |
| Bridge * | bridge |
| Associated bridge. More... | |
| Group * | group |
| Associated group. More... | |
| std::vector< uint8_t > | entertainment_msg |
| buffer containing the entertainment mode packet data More... | |
| uint8_t | entertainment_num_lights |
| number of lights in entertainment mode group More... | |
| std::unique_ptr< TLSContext > | tls_context |
| tls context More... | |
Class for Hue Entertainment Mode.
Provides methods to initialize and control Entertainment groups.
Constructor.
b and g. They must stay valid until EntertainmentMode ist destroyed. | hueplusplus::EntertainmentMode::~EntertainmentMode | ( | ) |
Destroy the Entertainment Mode object.
| bool hueplusplus::EntertainmentMode::connect | ( | ) |
Connect and start streaming.
| bool hueplusplus::EntertainmentMode::disconnect | ( | ) |
Disconnect and stop streaming.
| bool hueplusplus::EntertainmentMode::setColorRGB | ( | uint8_t | light_index, |
| uint8_t | red, | ||
| uint8_t | green, | ||
| uint8_t | blue | ||
| ) |
| bool hueplusplus::EntertainmentMode::update | ( | ) |
Update all set colors by setColorRGB.
|
protected |
Associated bridge.
|
protected |
buffer containing the entertainment mode packet data
|
protected |
number of lights in entertainment mode group
|
protected |
Associated group.
|
protected |
tls context
1.8.13