summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven <steven.vasilogianis@gmail.com>2021-09-30 17:08:35 -0400
committerSteven <steven.vasilogianis@gmail.com>2021-09-30 17:08:35 -0400
commit55c2e51976c9612752b186112cc5e96d9569b516 (patch)
tree319ff725bfc7694289fc20f6ebfa67f2f402b940
parent38ee8efec07aba1766fa100a54f241df7734beb1 (diff)
andy was here
-rw-r--r--src/main/Makefile2
-rw-r--r--src/main/main.ino5
-rw-r--r--src/main/wifiinfo.h1
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
115all: $(ELF) upload 115all: $(ELF)
116.PHONY: all 116.PHONY: all
117 117
118compile: $(ELF) 118compile: $(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
18DHT dht(DHTPIN, DHTTYPE); 19DHT dht(DHTPIN, DHTTYPE);
19 20
20void setup () { 21void 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
3const char *hostname = "mush";
3const char* ssid = "omni"; 4const char* ssid = "omni";
4const char* password = "everywhere"; 5const char* password = "everywhere";
5#endif 6#endif