From 55c2e51976c9612752b186112cc5e96d9569b516 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 30 Sep 2021 17:08:35 -0400 Subject: andy was here --- src/main/Makefile | 2 +- src/main/main.ino | 5 +++-- 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}]) $(info BIN is [${BIN}]) $(info SERIAL_DEV is [${SERIAL_DEV}]) -all: $(ELF) upload +all: $(ELF) .PHONY: all 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 @@ #include "ota.h" // Tempature + Humidity Sensor +#include #include #define DHTPIN 12 #define DHTTYPE DHT11 DHT dht(DHTPIN, DHTTYPE); void setup () { - setupWifi("mush"); - setupOTA("mush"); + setupWifi((char *) hostname); + setupOTA((char *) hostname); Serial.begin(115200); 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 @@ #ifndef wifiinfo_h #define wifiinfo_h +const char *hostname = "mush"; const char* ssid = "omni"; const char* password = "everywhere"; #endif -- cgit v1.2.3