Skip to content

Commit

Permalink
clean up a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
CircuitSetup committed Nov 8, 2019
1 parent e67ee2c commit 6163b84
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Software/EmonESP/src/emoncms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#include "http.h"
#include "wifi.h"

#include <Arduino.h>

//EMONCMS SERVER strings
const char* e_url = "/input/post.json?json=";
boolean emoncms_connected = false;
Expand Down
Binary file not shown.
3 changes: 2 additions & 1 deletion Software/EmonESP/src/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ boolean mqtt_connect()
{
mqttclient.setServer(mqtt_server.c_str(), 1883);
DBUGS.println("MQTT Connecting...");
DBUGS.println(mqttclient.state());

#ifdef ESP32
String strID = String((uint32_t)ESP.getEfuseMac());
Expand Down Expand Up @@ -100,7 +101,7 @@ void mqtt_publish(String data)
}
// send data via mqtt
//delay(100);
DBUGS.printf("%s = %s\r\n", topic.c_str(), mqtt_data.c_str());
//DBUGS.printf("%s = %s\r\n", topic.c_str(), mqtt_data.c_str());
mqttclient.publish(topic.c_str(), mqtt_data.c_str());
topic = mqtt_topic + "/" + mqtt_feed_prefix;
mqtt_data = "";
Expand Down
2 changes: 0 additions & 2 deletions Software/EmonESP/src_solar/emoncms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#include "http.h"
#include "wifi.h"

#include <Arduino.h>

//EMONCMS SERVER strings
const char* e_url = "/input/post.json?json=";
boolean emoncms_connected = false;
Expand Down
1 change: 1 addition & 0 deletions Software/EmonESP/src_solar/energy_meter.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
//#define ENABLE_OLED_DISPLAY
#define SOLAR_METER


/*
Uncomment to send metering values to EmonCMS, like Fundamental, Harmonic, Reactive, Apparent Power, and Phase Angle
*/
Expand Down
1 change: 0 additions & 1 deletion Software/EmonESP/src_solar/web_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

#include <FS.h> // SPIFFS file-system: store web server html, CSS etc.
#include <Arduino.h>

#ifdef ESP32
#include <SPIFFS.h>
#include <WiFi.h>
Expand Down

0 comments on commit 6163b84

Please sign in to comment.