Initial support for Govee devices
This commit is contained in:
parent
20f6565f44
commit
95b029d49d
17 changed files with 1164 additions and 17 deletions
|
|
@ -58,6 +58,7 @@ public:
|
|||
|
||||
//Function to open the port
|
||||
bool udp_client(const char* client_name, const char * port);
|
||||
bool udp_client(const char * client_name, const char * send_port, const char * recv_port);
|
||||
bool tcp_client(const char* client_name, const char * port);
|
||||
bool tcp_client_connect();
|
||||
|
||||
|
|
@ -67,8 +68,9 @@ public:
|
|||
SOCKET * tcp_server_get_client(std::size_t client_idx);
|
||||
SOCKET * tcp_server_listen();
|
||||
|
||||
void udp_join_multicast_group(const char * group_name);
|
||||
|
||||
int udp_listen(char * recv_data, int length);
|
||||
int udp_listen_timeout(char * recv_data, int length, int sec, int usec);
|
||||
int tcp_listen(char * recv_data, int length);
|
||||
|
||||
//Function to write data to the serial port
|
||||
|
|
@ -78,6 +80,8 @@ public:
|
|||
|
||||
void tcp_close();
|
||||
|
||||
void set_receive_timeout(int sec, int usec);
|
||||
|
||||
bool connected;
|
||||
SOCKET sock;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue