 {
   sched.update();
   refreshEvents();
+}
+
+
+void elmeter()
+{
+  _kwCounter++;
 }
 
 void processAD()

char feedId[33] = ""; // Feed you want to push to
char m2xKey[33] = ""; // Your M2X access key

IPAddress ip(192,168,1,177);
IPAddress gateway(192,168,1, 1);
IPAddress subnet(255, 255, 0, 0);

struct dig2a
{


int sendM2X(struct ad *ad,int cnt)
{
  const char *streamNames[5];
  int counts[5];
  const char *ats[5];
  double values[5];
  int m2xpos=0;
  String timebuf;
  char chbuf[22];
  int response;
  static float prevkw=0.0;
  static int cntLastSend=0;
  bool timeout=false;
  int ts;

  timebuf=String(year())+"-"+
    len2(month())+"-"+
    len2(day())+"T"+
