Skip to content
Snippets Groups Projects
Commit 9ad3edb2 authored by Moritz Perschke's avatar Moritz Perschke
Browse files

changed header to .hpp to use strings as identifiers

parent eadd1eac
No related branches found
No related tags found
5 merge requests!39Merge Develop into Main,!19development into master,!17Inital Host, initial Client,!3Merge Branch `develop` into `sensor_readout`,!1Espnow
#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;
......
#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();
#include <Arduino.h>
#include "espnow.h"
#include "espnow.hpp"
void setup() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment