clangify includes

This commit is contained in:
Drath
2025-10-29 01:26:47 +01:00
parent 33f343fa0a
commit 68cd4b0bfe
12 changed files with 63 additions and 53 deletions

View File

@@ -3,9 +3,7 @@
#include <libwebsockets.h>
#include <ArduinoJson.hpp>
#include <iostream>
#include <log.hpp>
#include <cstdint>
#include <string>
#define HASS_TOKEN "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI0MzUxMTZiY2VjNTg0MTI3OGI4YmU0NTY4ZGQ5MzIyYiIsImlhdCI6MTc1NzQzMDI0MCwiZXhwIjoyMDcyNzkwMjQwfQ.6wKTlxEA0FLWfv-qW35vewUSvTxdVrZWqFwHT5Khu6E"
@@ -16,10 +14,10 @@ class HomeAssistant {
std::string entity;
uint16_t id = 2;
std::string tx;
struct lws_context *context = NULL;
lws *websock = NULL;
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);
struct lws_context* context = NULL;
lws* websock = NULL;
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);