Skip to content

Commit

Permalink
Fixed issue with previous release where random data was uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartpittaway committed Apr 27, 2012
1 parent 22c31e8 commit ef8e9b6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nanodesmapvmonitor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
static time_t SummerStart=1332637200; //Sun, 25 Mar 2012 01:00:00 GMT
static time_t SummerEnd=1351386000; //Sun, 28 Oct 2012 01:00:00 GMT



//SMA inverter timezone (note inverter appears ignores summer time saving internally)
//Need to determine what happens when its a NEGATIVE time zone !
//Number of seconds for timezone
Expand Down Expand Up @@ -174,8 +176,6 @@ void loop()

checkIfNeedToSetInverterTime();



//getInverterName();
//HistoricData();

Expand Down Expand Up @@ -397,7 +397,7 @@ prog_uchar PROGMEM smanet2totalyieldWh[]= {
0x54, 0x00, 0x01, 0x26, 0x00, 0xFF, 0x01, 0x26, 0x00};

void getTotalPowerGeneration() {
//Gets the total kWh the SMA inverterhas generated in its lifetime...
//Gets the total kWh the SMA inverter has generated in its lifetime...
do {
writePacketHeader(level1packet);
writeSMANET2PlusPacket(level1packet,0x09, 0xa0, packet_send_counter, 0, 0, 0);
Expand All @@ -415,7 +415,7 @@ void getTotalPowerGeneration() {

//displaySpotValues(16);
memcpy(&datetime,&level1packet[40+1+4],4);
//memcpy(&value,&level1packet[40+1+8],3);
memcpy(&value,&level1packet[40+1+8],3);
//digitalClockDisplay(datetime);
//debugMsg('=');Serial.println(value);
currentvalue=value;
Expand All @@ -425,7 +425,6 @@ static time_t setTimePeriodically() {
return getNtpTime();
}


void initialiseSMAConnection() {

//Wait for announcement/broadcast message from PV inverter
Expand Down

0 comments on commit ef8e9b6

Please sign in to comment.