hueplusplus  1.0.0
EntertainmentMode.h
Go to the documentation of this file.
1 
23 #ifndef INCLUDE_HUEPLUSPLUS_HUE_ENTERTAINMENT_MODE_H
24 #define INCLUDE_HUEPLUSPLUS_HUE_ENTERTAINMENT_MODE_H
25 
26 #include "Bridge.h"
27 #include "Group.h"
28 
29 namespace hueplusplus
30 {
31 struct TLSContext;
32 
37 {
38 public:
47 
50 
55  bool connect();
56 
61  bool disconnect();
62 
71  bool setColorRGB(uint8_t light_index, uint8_t red, uint8_t green, uint8_t blue);
72 
77  bool update();
78 
79 protected:
82 
83  std::vector<uint8_t> entertainment_msg;
85 
86  std::unique_ptr<TLSContext> tls_context;
87 };
88 } // namespace hueplusplus
89 
90 #endif
Group * group
Associated group.
Definition: EntertainmentMode.h:81
bool connect()
Connect and start streaming.
Definition: EntertainmentMode.cpp:137
Class for Hue Entertainment Mode.
Definition: EntertainmentMode.h:36
~EntertainmentMode()
Destroy the Entertainment Mode object.
Definition: EntertainmentMode.cpp:127
Namespace for the hueplusplus library.
Definition: Action.h:27
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.
Definition: EntertainmentMode.cpp:268
std::vector< uint8_t > entertainment_msg
buffer containing the entertainment mode packet data
Definition: EntertainmentMode.h:83
bool update()
Update all set colors by setColorRGB.
Definition: EntertainmentMode.cpp:289
uint8_t entertainment_num_lights
number of lights in entertainment mode group
Definition: EntertainmentMode.h:84
bool disconnect()
Disconnect and stop streaming.
Definition: EntertainmentMode.cpp:262
Bridge class for a bridge.
Definition: Bridge.h:138
EntertainmentMode(Bridge &b, Group &g)
Constructor.
Definition: EntertainmentMode.cpp:63
std::unique_ptr< TLSContext > tls_context
tls context
Definition: EntertainmentMode.h:86
Bridge * bridge
Associated bridge.
Definition: EntertainmentMode.h:80
Class for Groups of lights.
Definition: Group.h:41