Add link to dependices
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#include <RunningMedian.h>
|
||||
#include <EEPROM.h>
|
||||
#include <WiFi.h>
|
||||
#include <esp_now.h>
|
||||
|
||||
extern "C" {
|
||||
#include "freertos/FreeRTOS.h"
|
||||
@@ -27,6 +26,12 @@ extern "C" {
|
||||
}
|
||||
#include <AsyncMqttClient.h>
|
||||
|
||||
#include "CG_RadSens.h"
|
||||
|
||||
CG_RadSens radSens(RS_DEFAULT_I2C_ADDRESS); /*Constructor of the class ClimateGuard_RadSens1v2,
|
||||
sets the address parameter of I2C sensor.
|
||||
Default address: 0x66.*/
|
||||
|
||||
typedef struct message {
|
||||
float temperature;
|
||||
float humidity;
|
||||
@@ -97,12 +102,9 @@ void setup() {
|
||||
WiFi.mode(WIFI_MODE_APSTA);
|
||||
connectToWifi();
|
||||
|
||||
// Initializing the ESP-NOW
|
||||
if (esp_now_init() != 0) {
|
||||
Serial.println("Problem during ESP-NOW init");
|
||||
return;
|
||||
}
|
||||
esp_now_register_recv_cb(onDataReceiver);
|
||||
radSens.init();
|
||||
radSens.setSensitivity(105);
|
||||
|
||||
oldmov = 0;
|
||||
lamp = false;
|
||||
cRun = millis();
|
||||
|
||||
Reference in New Issue
Block a user