// Send data to Emoncms server
String result = "";
if (emoncms_fingerprint.isEmpty())
{
// HTTPS on port 443 if HTTPS fingerprint is present
DBUGLN(F("HTTPS Enabled"));
result =
get_https(emoncms_fingerprint.c_str(), emoncms_server.c_str(), url,
443);
}
else
{
// Plain HTTP if other emoncms server e.g EmonPi
DBUGLN(F("Plain old HTTP"));
result = get_http(emoncms_server.c_str(), url);
}
I think that in
emoncms.cpp
, in this section:The condition should instead be: