From 9ad3edb221569dd6a1a0a78bc693f00324cab002 Mon Sep 17 00:00:00 2001
From: Moritz Perschke <moritz.perschke@uibk.ac.at>
Date: Mon, 25 Jul 2022 15:08:11 +0200
Subject: [PATCH] changed header to .hpp to use strings as identifiers

---
 client/client/lib/espnow/src/espnow.cpp |  2 +-
 client/client/lib/espnow/src/espnow.h   | 12 ------------
 client/client/src/main.cpp              |  2 +-
 3 files changed, 2 insertions(+), 14 deletions(-)
 delete mode 100644 client/client/lib/espnow/src/espnow.h

diff --git a/client/client/lib/espnow/src/espnow.cpp b/client/client/lib/espnow/src/espnow.cpp
index b5cb166..503b066 100644
--- a/client/client/lib/espnow/src/espnow.cpp
+++ b/client/client/lib/espnow/src/espnow.cpp
@@ -1,6 +1,6 @@
 #include <esp_now.h>
 #include "WiFi.h"
-#include "espnow.h"
+#include "espnow.hpp"
 
 uint8_t BROADCAST_MAC[] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; //probably shouldn't be defined here, works for now
 esp_now_peer_info_t hostInfo;
diff --git a/client/client/lib/espnow/src/espnow.h b/client/client/lib/espnow/src/espnow.h
deleted file mode 100644
index 334fe10..0000000
--- a/client/client/lib/espnow/src/espnow.h
+++ /dev/null
@@ -1,12 +0,0 @@
-#define NUM_SENSORS 10
-
-// I originally wanted to define the mac addresses here, but i got a "multiple definition" error?
-typedef struct dataMessage{
-    int identifiers[NUM_SENSORS];
-    float values[NUM_SENSORS];
-}dataMessage;
-
-int send_data(dataMessage data);
-
-int espnow_setup();
-
diff --git a/client/client/src/main.cpp b/client/client/src/main.cpp
index 0c1c8ca..91da067 100644
--- a/client/client/src/main.cpp
+++ b/client/client/src/main.cpp
@@ -1,5 +1,5 @@
 #include <Arduino.h>
-#include "espnow.h"
+#include "espnow.hpp"
 
 void setup() {
  
-- 
GitLab