whole lotta shit clion made me do

This commit is contained in:
2026-01-02 01:44:20 +01:00
parent d6a7179ba5
commit a54b89bce8
10 changed files with 87 additions and 79 deletions

View File

@@ -14,19 +14,19 @@ class HomeAssistant {
std::string entity;
uint16_t id = 2;
std::string tx;
struct lws_context* context = NULL;
lws* websock = NULL;
struct lws_context* context = nullptr;
lws* websock = nullptr;
void event_handler(struct lws* wsi, enum lws_callback_reasons reason, char* in);
static int callback(struct lws* wsi, enum lws_callback_reasons reason, void* user, void* in, size_t len);
public:
HomeAssistant(std::string addr, std::string ent);
HomeAssistant(const std::string& addr, const std::string& ent);
~HomeAssistant();
float state = 0.0f;
int connect();
void service(int timeout_ms = 0);
void disconnect();
void disconnect() const;
void service(int timeout_ms = 0) const;
};
#endif