   {3,"radiator",     0,0,     0,0.0, 0,0.3, 7,  21.0, 539,  36.5,  0,0.0,  0,0.0}
 };
 
-/*
-struct cnt cntArr[] = {       //prev  dif    scale   measured
-  {&_kwCounter,"electricity",  0,0,     0,0.0, 0,0.3, 150,1.0,  0,0.0}
-}
-*/
+
+struct cnt cntArr[] = {         //prev prevsnd    diff   factor  scale  measured
+  {0,"electricity",  0,0,0,0,     0,0.0, 0,0.0,   0,0.2, 0,0.21, 50,1.0,  0,0.0}
+};
+
 
 int readAdChannels(struct ad *ad, int cnt);
 String buildServerMsg(struct ad *ad,int cnt);

    }
    digitalWrite(13,1);
    Serial.println();
    Serial.print(m2xpos);
    Serial.println(" records to send to M2X iot server");
    
    showCounters(counts,m2xpos);
    showStreamnames(streamNames,m2xpos);
    showTimes(ats,m2xpos);
    showValues(values,m2xpos);

    response = m2xClient.postMultiple(feedId, m2xpos, streamNames,
				      counts, ats, values);
    digitalWrite(13,0);
    Serial.print("M2x client response code: ");
    Serial.println(response);

char m2xKey[33] = ""; // Your M2X access key

volatile unsigned int _kwCounter = 0;   // counter for the number of interrupts

IPAddress ip(192,168,1,177);
IPAddress gateway(192,168,1, 1);
