Merge pull request #44 from xibriz/master

This solves partly #44 and #40
This commit is contained in:
Roar Fredriksen 2018-04-12 09:15:34 +02:00 committed by GitHub
commit 3bc5d47e0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View File

@ -114,6 +114,10 @@ void setupWiFi()
// Connect to WiFi
WiFi.begin(ap.config.ssid, ap.config.ssidPassword);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
}
// Initialize WiFi and MQTT clients
if (ap.config.isSecure())
client = new WiFiClientSecure();
@ -168,12 +172,12 @@ void readHanPort()
case 1: // Kaifa
readHanPort_Kaifa(listSize);
break;
case 2: // Kamstrup
readHanPort_Kamstrup(listSize);
break;
case 3: // Aidon
case 2: // Aidon
readHanPort_Aidon(listSize);
break;
case 3: // Kamstrup
readHanPort_Kamstrup(listSize);
break;
default:
debugger->print("Meter type ");
debugger->print(ap.config.meterType, HEX);

File diff suppressed because one or more lines are too long