Skip to content

Commit

Permalink
Merge pull request #3 from vergissberlin/webconfig
Browse files Browse the repository at this point in the history
Fix configuration
  • Loading branch information
vergissberlin committed Jan 31, 2020
2 parents 96ab94d + ec55b6a commit e496b02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion coffee-bin/coffee-bin.ino
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ boolean statusMaintenance = false;


void setup() {
Serial.begin(9600);
Serial.begin(115200);
delay(500);
Serial.println(F("\n ✰✰✰ Coffee-Bin booting ✰✰✰ "));
Serial.println("\n\
Expand Down
4 changes: 1 addition & 3 deletions coffee-bin/config.dist.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const char* wifiHostname = "coffee-bin";

const int pinLedTop = BUILTIN_LED;
const int pinLedBottom = 2;
const int pinLedExtern = D5;
const int pinFlash = 0;
const int pinBin = 4;
const int pinMaintenance = 5;
Expand All @@ -18,6 +19,3 @@ const int otaPort = 8266;
#define MQTT_KEY "xxx"
#define MQTT_FEED_BIN "/feeds/coffee-bin.bin"
#define MQTT_FEED_MAINTENANCE "/feeds/coffee-bin.maintenance"

const char* mqttFeedBin = "/feeds/coffee-bin.bin";
const char* mqttFeedMaintenance = "/feeds/coffee-bin.maintenance";
4 changes: 2 additions & 2 deletions coffee-bin/wifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ void setupWifi() {
delay(3000);
}
Serial.println();
Serial.println(F("Status\t\t\tWiFi connected!"));
Serial.println(F("Status\t\tWiFi connected!"));
Serial.print(F("IP address\t\t"));
Serial.println(WiFi.localIP());
Serial.print("GW address\t\t");
Serial.println(WiFi.gatewayIP());
Serial.print("MAC address\t\t");
Serial.print("MAC address\t");
Serial.println(WiFi.macAddress());
}

0 comments on commit e496b02

Please sign in to comment.