Almost done with the OOP
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
#include <nodeCodeHeader.h>
|
||||
#include <websockets.h>
|
||||
#include <WebSocketsClient.h>
|
||||
|
||||
nodeReadings esp32Node();
|
||||
websockets webSocket();
|
||||
nodeReadings esp32Node;
|
||||
websockets webSocketClass;
|
||||
|
||||
void setup()
|
||||
{
|
||||
void setup() {
|
||||
// put your setup code here, to run once:
|
||||
esp32Node.setup();
|
||||
webSocket.websocketSetup();
|
||||
webSocketClass.websocketSetup();
|
||||
esp32Node.resetValues();
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
esp32Node.loop();
|
||||
webSocketClass.loop();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user