From 3032f591496f61e2044ff29bf6b9f949da5dd348 Mon Sep 17 00:00:00 2001 From: Moritz Perschke <moritz.perschke@uibk.ac.at> Date: Thu, 28 Jul 2022 16:16:09 +0200 Subject: [PATCH] espnow.hpp got removed in reverting commit --- client/client/lib/espnow/src/espnow.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/client/lib/espnow/src/espnow.hpp diff --git a/client/client/lib/espnow/src/espnow.hpp b/client/client/lib/espnow/src/espnow.hpp new file mode 100644 index 0000000..536fba1 --- /dev/null +++ b/client/client/lib/espnow/src/espnow.hpp @@ -0,0 +1,13 @@ + +#include <string> +#define NUM_SENSORS 10 + +// I originally wanted to define the mac addresses here, but i got a "multiple definition" error? +typedef struct dataMessage{ + std::string identifiers[NUM_SENSORS]; + float values[NUM_SENSORS]; +}dataMessage; + +int send_data(dataMessage data); + +int espnow_setup(); \ No newline at end of file -- GitLab