whole lotta shit clion made me do
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user