This repository has been archived by the owner on Jan 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basecamp: Show MAC on Serial, fixes #10
- Loading branch information
1 parent
223a660
commit c82c291
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ | |
Written by Merlin Schumacher ([email protected]) for c't magazin für computer technik (https://www.ct.de) | ||
Licensed under GPLv3. See LICENSE for details. | ||
*/ | ||
#define DEBUG 1 | ||
|
||
#include "Basecamp.hpp" | ||
#include "debug.hpp" | ||
|
||
|
@@ -25,7 +23,8 @@ String Basecamp::_generateHostname() { | |
|
||
bool Basecamp::begin() { | ||
Serial.begin(115200); | ||
Serial.println("Basecamp V.0.1.5"); | ||
Serial.print("Basecamp V."); | ||
Serial.println(version); | ||
configuration.begin("/basecamp.json"); | ||
if (!configuration.load()) { | ||
DEBUG_PRINTLN("Configuration is broken. Resetting."); | ||
|
@@ -103,6 +102,7 @@ bool Basecamp::begin() { | |
} | ||
#endif | ||
|
||
Serial.println(showSystemInfo()); | ||
} | ||
|
||
|
||
|
@@ -228,3 +228,9 @@ String Basecamp::_generateMac() { | |
} | ||
return mac; | ||
} | ||
|
||
String Basecamp::showSystemInfo() { | ||
String Info = ""; | ||
Info += "MAC-Address: " + mac; | ||
return Info; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters