|  | @ -191,19 +191,18 @@ class Inverter { | 
			
		
	
		
		
			
				
					|  |  |                 if(mNextLive) |  |  |                 if(mNextLive) | 
			
		
	
		
		
			
				
					|  |  |                     cb(RealTimeRunData_Debug, false);    // get live data
 |  |  |                     cb(RealTimeRunData_Debug, false);    // get live data
 | 
			
		
	
		
		
			
				
					|  |  |                 else { |  |  |                 else { | 
			
		
	
		
		
			
				
					|  |  |                     mNextLive = true; |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                     if(actPowerLimit == 0xffff) |  |  |                     if(actPowerLimit == 0xffff) | 
			
		
	
		
		
			
				
					|  |  |                         cb(SystemConfigPara, false);         // power limit info
 |  |  |                         cb(SystemConfigPara, false);         // power limit info
 | 
			
		
	
		
		
			
				
					|  |  |                     else if(InitDataState != devControlCmd) { |  |  |                     else if(InitDataState != devControlCmd) { | 
			
		
	
		
		
			
				
					|  |  |                         cb(devControlCmd, false);            // custom command which was received by API
 |  |  |                         cb(devControlCmd, false);            // custom command which was received by API
 | 
			
		
	
		
		
			
				
					|  |  |                         devControlCmd = InitDataState; |  |  |                         devControlCmd = InitDataState; | 
			
		
	
		
		
			
				
					|  |  |                         mGetLossInterval = 1; |  |  |                         mGetLossInterval = 1; | 
			
		
	
		
		
			
				
					
					|  |  |                     } else if((alarmLastId != alarmMesIndex) && (alarmMesIndex != 0)) |  |  |                     } else if(0 == getFwVersion()) | 
			
				
				
			
		
	
		
		
			
				
					|  |  |                         cb(AlarmData, false);                // get last alarms
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                     else if(0 == getFwVersion()) |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					|  |  |                         cb(InverterDevInform_All, false);    // get firmware version
 |  |  |                         cb(InverterDevInform_All, false);    // get firmware version
 | 
			
		
	
		
		
			
				
					|  |  |                     else if(0 == getHwVersion()) |  |  |                     else if(0 == getHwVersion()) | 
			
		
	
		
		
			
				
					|  |  |                         cb(InverterDevInform_Simple, false); // get hardware version
 |  |  |                         cb(InverterDevInform_Simple, false); // get hardware version
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                     else if((alarmLastId != alarmMesIndex) && (alarmMesIndex != 0)) | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                         cb(AlarmData, false);                // get last alarms
 | 
			
		
	
		
		
			
				
					|  |  |                     else if((0 == mGridLen) && generalConfig->readGrid) { // read grid profile
 |  |  |                     else if((0 == mGridLen) && generalConfig->readGrid) { // read grid profile
 | 
			
		
	
		
		
			
				
					|  |  |                         cb(GridOnProFilePara, false); |  |  |                         cb(GridOnProFilePara, false); | 
			
		
	
		
		
			
				
					|  |  |                     } else if (mGetLossInterval > AHOY_GET_LOSS_INTERVAL) { // get loss rate
 |  |  |                     } else if (mGetLossInterval > AHOY_GET_LOSS_INTERVAL) { // get loss rate
 | 
			
		
	
	
		
		
			
				
					|  | @ -339,28 +338,27 @@ class Inverter { | 
			
		
	
		
		
			
				
					|  |  |                         } |  |  |                         } | 
			
		
	
		
		
			
				
					|  |  |                     } |  |  |                     } | 
			
		
	
		
		
			
				
					|  |  |                 } |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |                 else if (rec->assign == InfoAssignment) { |  |  |                 else { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     DPRINTLN(DBG_DEBUG, "add info"); |  |  |                     mNextLive = true; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     // eg. fw version ...
 |  |  |                     if (rec->assign == InfoAssignment) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     isConnected = true; |  |  |                         DPRINTLN(DBG_DEBUG, "add info"); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 } |  |  |                         // eg. fw version ...
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 else if (rec->assign == SimpleInfoAssignment) { |  |  |                         isConnected = true; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     DPRINTLN(DBG_DEBUG, "add simple info"); |  |  |                     } else if (rec->assign == SimpleInfoAssignment) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     // eg. hw version ...
 |  |  |                         DPRINTLN(DBG_DEBUG, "add simple info"); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 } |  |  |                         // eg. hw version ...
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 else if (rec->assign == SystemConfigParaAssignment) { |  |  |                     } else if (rec->assign == SystemConfigParaAssignment) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     DPRINTLN(DBG_DEBUG, "add config"); |  |  |                         DPRINTLN(DBG_DEBUG, "add config"); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     if (getPosByChFld(0, FLD_ACT_ACTIVE_PWR_LIMIT, rec) == pos){ |  |  |                         if (getPosByChFld(0, FLD_ACT_ACTIVE_PWR_LIMIT, rec) == pos){ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                         actPowerLimit = rec->record[pos]; |  |  |                             actPowerLimit = rec->record[pos]; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                         DPRINT(DBG_DEBUG, F("Inverter actual power limit: ")); |  |  |                             DPRINT(DBG_DEBUG, F("Inverter actual power limit: ")); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                         DPRINTLN(DBG_DEBUG, String(actPowerLimit, 1)); |  |  |                             DPRINTLN(DBG_DEBUG, String(actPowerLimit, 1)); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     } |  |  |                         } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 } |  |  |                     } else if (rec->assign == AlarmDataAssignment) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 else if (rec->assign == AlarmDataAssignment) { |  |  |                         DPRINTLN(DBG_DEBUG, "add alarm"); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     DPRINTLN(DBG_DEBUG, "add alarm"); |  |  |                     } else | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |                         DPRINTLN(DBG_WARN, F("add with unknown assignment")); | 
			
		
	
		
		
			
				
					|  |  |                 } |  |  |                 } | 
			
		
	
		
		
			
				
					|  |  |                 else |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                     DPRINTLN(DBG_WARN, F("add with unknown assignment")); |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             } |  |  |             } | 
			
		
	
		
		
			
				
					|  |  |             else |  |  |             else | 
			
		
	
		
		
			
				
					|  |  |                 DPRINTLN(DBG_ERROR, F("addValue: assignment not found with cmd 0x")); |  |  |                 DPRINTLN(DBG_ERROR, F("addValue: assignment not found with cmd 0x")); | 
			
		
	
	
		
		
			
				
					|  | 
 |