Skip to content

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Dec 14, 2022
1 parent 7b75d0f commit f8d89ec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
Binary file added doc/Connections.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions src/main.ino
Original file line number Diff line number Diff line change
Expand Up @@ -639,10 +639,6 @@ void mqttMessageReceived(String &topic, String &payload) {
}

debugD(" pending set = %d", setres );




}

void sendMqttMessage(const String &name, String &payload, bool retain) {
Expand Down
8 changes: 1 addition & 7 deletions src/web/InternalWebServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,7 @@ void InternalWebServer::setup(configuration* config, MQTTClient* mqtt, RegisterM

server.begin(); // Web server start

print("Web server is ready for config at http://");
if(WiFi.getMode() == WIFI_AP) {
print(WiFi.softAPIP());
} else {
print(WiFi.localIP());
}
println("/");
println("Web server is ready for config");

config->getWebConfig(webConfig);
MqttConfig mqttConfig;
Expand Down
8 changes: 4 additions & 4 deletions web/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AMS reader - Setup</title>
<title>Villavent bridge - Setup</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css" href="boot.css"/>
</head>
<body class="bg-light">
<main role="main" class="container">
<header class="navbar navbar-expand navbar-dark flex-column flex-md-row bg-purple rounded mt-2 mb-4">
<a href="/" class=""><h6 class="navbar-brand">AMS reader <small>${version}</small></h6></a>
<a href="/" class=""><h6 class="navbar-brand">Villavent bridge <small>${version}</small></h6></a>
<ul class="navbar-nav flex-row ml-md-auto d-none d-md-flex">
<li class="nav-item">
<a class="nav-link p-2" href="https://github.com/gskjold/AmsToMqttBridge" target="_blank" rel="noopener" aria-label="GitHub">
<a class="nav-link p-2" href="https://github.com/gskjold/villavent-bridge" target="_blank" rel="noopener" aria-label="GitHub">
<img style="width: 2rem; height: 2rem;" src="github.svg"/>
</a>
</li>
Expand Down Expand Up @@ -77,7 +77,7 @@ <h5>WiFi</h5>
<div class="input-group-prepend">
<span class="input-group-text">Hostname</span>
</div>
<input type="text" name="wifiHostname" class="form-control" maxlength="32" pattern="[a-z0-9_-]+" placeholder="Optional, ex.: ams-reader" value="${config.wifiHostname}"/>
<input type="text" name="wifiHostname" class="form-control" maxlength="32" pattern="[a-z0-9_-]+" placeholder="Optional, ex.: villavent-bridge" value="${config.wifiHostname}"/>
</div>
</div>
<div class="col-xl-2 col-md-6 form-group">
Expand Down

0 comments on commit f8d89ec

Please sign in to comment.