Farm-Data-Relay-System/Examples/2_ESPNOW_Sensor/2_ESPNOW_Sensor.ino

27 lines
514 B
Arduino
Raw Normal View History

2022-05-21 02:05:29 +00:00
// FARM DATA RELAY SYSTEM
//
// Basic Sensor Example
//
// Developed by Timm Bogner (bogner1@gmail.com) for Sola Gratia Farm in Urbana, Illinois, USA.
// An example of how to send data using "fdrs_sensor.h".
//
#define DEBUG
#define ESPNOW_SENSOR
2022-05-21 02:05:29 +00:00
#include "fdrs_sensor.h"
float data1 = 42.069;
float data2 = 21.0345;
void setup() {
beginFDRS();
}
void loop() {
loadFDRS(data1, HUMIDITY_T);
loadFDRS(data2, TEMP_T);
sendFDRS();
sleepFDRS(10); //Sleep time in seconds
}