hueplusplus 1.2.0
Loading...
Searching...
No Matches
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
29namespace hueplusplus
30{
31struct TLSContext;
32
37{
38public:
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
79protected:
82
83 std::vector<uint8_t> entertainment_msg;
85
86 std::unique_ptr<TLSContext> tls_context;
87};
88} // namespace hueplusplus
89
90#endif
Bridge class for a bridge.
Definition Bridge.h:139
Class for Hue Entertainment Mode.
Definition EntertainmentMode.h:37
bool connect()
Connect and start streaming.
Definition EntertainmentMode.cpp:147
Bridge * bridge
Associated bridge.
Definition EntertainmentMode.h:80
bool disconnect()
Disconnect and stop streaming.
Definition EntertainmentMode.cpp:272
uint8_t entertainment_num_lights
number of lights in entertainment mode group
Definition EntertainmentMode.h:84
bool update()
Update all set colors by setColorRGB.
Definition EntertainmentMode.cpp:299
std::vector< uint8_t > entertainment_msg
buffer containing the entertainment mode packet data
Definition EntertainmentMode.h:83
~EntertainmentMode()
Destroy the Entertainment Mode object.
Definition EntertainmentMode.cpp:137
std::unique_ptr< TLSContext > tls_context
tls context
Definition EntertainmentMode.h:86
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:278
Group * group
Associated group.
Definition EntertainmentMode.h:81
Class for Groups of lights.
Definition Group.h:42
Namespace for the hueplusplus library.
Definition Action.h:28