moved websocket class to work with esp

This commit is contained in:
Dano van den Bosch
2024-03-19 22:54:58 +01:00
parent cf18d4ab4f
commit 11099a1af9
5 changed files with 27 additions and 11 deletions

View File

@@ -7,8 +7,9 @@
#include <Adafruit_SH110X.h>
// #include "headerFile.h"
#include <DHT.h>
#include <WebSocketsClient.h>
// #include <WebSocketsClient.h>
#include <Adafruit_SGP30.h>
#include "websockets.h"
// define pins on esp32
#define MICPIN 6
@@ -40,7 +41,8 @@ public:
private:
DHT *dht;
Adafruit_SH1106G *display;
WebSocketsClient *webSocket;
// WebSocketsClient *webSocket;
websockets *webSocket;
Adafruit_SGP30 *sgp;
uint16_t TVOC_base, eCO2_base;