summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Baumann <derflob@derflob.de>2020-06-09 11:15:55 +0200
committerFlorian Baumann <derflob@derflob.de>2020-06-09 11:15:55 +0200
commit56d8e8fce597b8668a89f404a65f13f253916102 (patch)
tree0b2ca94d7b5dd39693a2ed51091dc85613813e9f
parent502d5c4d528aa4425b51b77f6040de34bb8a8e37 (diff)
downloadULPSoilMonitor-56d8e8fce597b8668a89f404a65f13f253916102.tar.gz
ULPSoilMonitor-56d8e8fce597b8668a89f404a65f13f253916102.tar.bz2
add config.h
-rw-r--r--ULPSoilMonitor.ino3
-rw-r--r--config.h12
2 files changed, 13 insertions, 2 deletions
diff --git a/ULPSoilMonitor.ino b/ULPSoilMonitor.ino
index 499660f..4df3eba 100644
--- a/ULPSoilMonitor.ino
+++ b/ULPSoilMonitor.ino
@@ -4,13 +4,12 @@
#include "esp32/ulp.h"
#include "ulp_soil.h"
#include "ulptool.h"
+#include "config.h"
#include <math.h>
#define ADC_FACTOR (3.5f)
#define ADC_VCC_PIN (ADC2_CHANNEL_9)
-#define ULP_PERIOD_MS (30000)
-
extern const uint8_t ulp_main_bin_start[] asm("_binary_ulp_main_bin_start");
extern const uint8_t ulp_main_bin_end[] asm("_binary_ulp_main_bin_end");
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..a8e36cb
--- /dev/null
+++ b/config.h
@@ -0,0 +1,12 @@
+#ifndef __CONFIG_H__
+#define __CONFIG_H__
+
+#define STA_SSID "SSID"
+#define STA_PASSWD "PASSWORD"
+#define HOSTNAME "ulpsm"
+
+#define MQTT_HOST "10.0.0.1"
+
+#define ULP_PERIOD_MS (3000)
+
+#endif