Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Dump native API Server config on boot (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
voicevon authored and OttoWinter committed Dec 30, 2018
1 parent 1d1733e commit db3d520
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.pioenvs
.piolibdeps
.vscode
CMakeListsPrivate.txt

# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
Expand Down
3 changes: 2 additions & 1 deletion src/esphomelib/api/api_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ void APIServer::loop() {
}
}
void APIServer::dump_config() {

ESP_LOGCONFIG(TAG, "API Server:");
ESP_LOGCONFIG(TAG, " Port: %u", this->port_);
}
bool APIServer::uses_password() const {
return !this->password_.empty();
Expand Down

0 comments on commit db3d520

Please sign in to comment.