xmlResponse = httpXmlResponse(urlParameters);
if (xmlResponse.isEmpty()) {
+ logger.debug("Hayward Connection thing: Login XML response was null");
return false;
}
xmlResponse = httpXmlResponse(urlParameters);
if (xmlResponse.isEmpty()) {
- logger.debug("Hayward Connection thing: Login XML response was null");
+ logger.debug("Hayward Connection thing: getApiDef XML response was null");
return false;
}
return true;
String xmlResponse = httpXmlResponse(urlParameters);
if (xmlResponse.isEmpty()) {
- logger.debug("Hayward Connection thing: requestConfig XML response was null");
+ logger.debug("Hayward Connection thing: getMSPConfig XML response was null");
return "Fail";
}
if (evaluateXPath("//Backyard/Name/text()", xmlResponse).isEmpty()) {
- logger.debug("Hayward Connection thing: requestConfiguration XML response: {}", xmlResponse);
+ logger.debug("Hayward Connection thing: getMSPConfig XML response: {}", xmlResponse);
return "Fail";
}
return xmlResponse;
String xmlResponse = getMspConfig();
+ if (xmlResponse.contentEquals("Fail")) {
+ return false;
+ }
+
// Get Units (Standard, Metric)
property1 = evaluateXPath("//System/Units/text()", xmlResponse);
account.units = property1.get(0);