mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-01 19:57:53 -05:00
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
/*---------------------------------------------------------*\
|
|
| Definitions for Yeelight |
|
|
| |
|
|
| Adam Honse (calcprogrammer1@gmail.com), 1/18/2021 |
|
|
\*---------------------------------------------------------*/
|
|
|
|
#include "RGBController.h"
|
|
#include "net_port.h"
|
|
|
|
#include <string>
|
|
#include <thread>
|
|
#include <vector>
|
|
|
|
#pragma once
|
|
|
|
class YeelightController
|
|
{
|
|
public:
|
|
YeelightController(std::string ip, std::string host_ip, bool music_mode_val);
|
|
~YeelightController();
|
|
|
|
std::string GetLocation();
|
|
std::string GetName();
|
|
std::string GetVersion();
|
|
std::string GetManufacturer();
|
|
std::string GetUniqueID();
|
|
|
|
bool GetMusicMode();
|
|
|
|
void SetMusicMode();
|
|
void SetPower();
|
|
void SetColor(unsigned char red, unsigned char green, unsigned char blue);
|
|
|
|
private:
|
|
std::string location;
|
|
std::string host_ip;
|
|
net_port port;
|
|
bool music_mode;
|
|
unsigned int music_mode_port;
|
|
net_port music_mode_server;
|
|
SOCKET * music_mode_sock;
|
|
};
|