Farm-Data-Relay-System/examples/ESPNOW_Stress_Test/ESPNOW_Stress_Test.ino
Sascha b2423b5265 cleanup of examples folder
- copied fdrs_functions.h to the root dir.
- removed all local occurances of fdrs_sensor.h and included the global <fdrs_sensor.h> instead.
- removed all local occurances of fdrs_functions.h and included the global <fdrs_functions.h> instead.
- made inclusion of fdrs_globals.h the default instead of using the llocal definitions in the file everywhere were FDRS_xxx is defined correctly.
- Fixed the faulty calls to functions where the local defines instead of the FDRS_xxx defines were used, e.G. BAND instead of FDRS_BAND
- For easier debugging I added some variation to the sensor sketches: Humidity values are randomly choosen between 0-100. For ease of view I made the first digit of the temperature values match the Reading_ID
2022-07-06 01:03:22 +02:00

21 lines
324 B
C++

// FARM DATA RELAY SYSTEM
//
// ESP-NOW Stress Tester or "Spammer"
//
// Sends ESP-NOW packets at approximately 60Hz.
//
#include "sensor_setup.h"
#include <fdrs_sensor.h>
void setup() {
beginFDRS();
}
void loop() {
for (int i=0; i < 255; i++) {
loadFDRS(float(i), IT_T);
sendFDRS();
delay(15);
}
}