diff options
author | Steven <steven.vasilogianis@gmail.com> | 2021-09-30 17:08:35 -0400 |
---|---|---|
committer | Steven <steven.vasilogianis@gmail.com> | 2021-09-30 17:08:35 -0400 |
commit | 55c2e51976c9612752b186112cc5e96d9569b516 (patch) | |
tree | 319ff725bfc7694289fc20f6ebfa67f2f402b940 | |
parent | 38ee8efec07aba1766fa100a54f241df7734beb1 (diff) |
andy was here
-rw-r--r-- | src/main/Makefile | 2 | ||||
-rw-r--r-- | src/main/main.ino | 5 | ||||
-rw-r--r-- | src/main/wifiinfo.h | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/main/Makefile b/src/main/Makefile index 5da579d..023ef7b 100644 --- a/src/main/Makefile +++ b/src/main/Makefile | |||
@@ -112,7 +112,7 @@ $(info HDRS is [${HDRS}]) | |||
112 | $(info BIN is [${BIN}]) | 112 | $(info BIN is [${BIN}]) |
113 | $(info SERIAL_DEV is [${SERIAL_DEV}]) | 113 | $(info SERIAL_DEV is [${SERIAL_DEV}]) |
114 | 114 | ||
115 | all: $(ELF) upload | 115 | all: $(ELF) |
116 | .PHONY: all | 116 | .PHONY: all |
117 | 117 | ||
118 | compile: $(ELF) | 118 | compile: $(ELF) |
diff --git a/src/main/main.ino b/src/main/main.ino index d6f41d5..8f9dbd1 100644 --- a/src/main/main.ino +++ b/src/main/main.ino | |||
@@ -12,14 +12,15 @@ | |||
12 | #include "ota.h" | 12 | #include "ota.h" |
13 | 13 | ||
14 | // Tempature + Humidity Sensor | 14 | // Tempature + Humidity Sensor |
15 | #include <WiFiClient.h> | ||
15 | #include <DHT.h> | 16 | #include <DHT.h> |
16 | #define DHTPIN 12 | 17 | #define DHTPIN 12 |
17 | #define DHTTYPE DHT11 | 18 | #define DHTTYPE DHT11 |
18 | DHT dht(DHTPIN, DHTTYPE); | 19 | DHT dht(DHTPIN, DHTTYPE); |
19 | 20 | ||
20 | void setup () { | 21 | void setup () { |
21 | setupWifi("mush"); | 22 | setupWifi((char *) hostname); |
22 | setupOTA("mush"); | 23 | setupOTA((char *) hostname); |
23 | 24 | ||
24 | Serial.begin(115200); | 25 | Serial.begin(115200); |
25 | Serial.println(F("Mushing...")); | 26 | Serial.println(F("Mushing...")); |
diff --git a/src/main/wifiinfo.h b/src/main/wifiinfo.h index 9a5f315..fb94cdd 100644 --- a/src/main/wifiinfo.h +++ b/src/main/wifiinfo.h | |||
@@ -1,5 +1,6 @@ | |||
1 | #ifndef wifiinfo_h | 1 | #ifndef wifiinfo_h |
2 | #define wifiinfo_h | 2 | #define wifiinfo_h |
3 | const char *hostname = "mush"; | ||
3 | const char* ssid = "omni"; | 4 | const char* ssid = "omni"; |
4 | const char* password = "everywhere"; | 5 | const char* password = "everywhere"; |
5 | #endif | 6 | #endif |