<%@ include file="../layout/include_header.jsp" %>
<%
%>
<%
//String smsInfo = "500000|0|25|50";
%>
<%
/************************************************************************
*
* SMS 발송 테스트
*
*************************************************************************/
//int result_sms = 0;
//String sms_result[] = null;
String resultMsg = "";
//{"site_id":"12345678(0001)","pcs_count":1,"bat_count":1,"timestamp":"2022-09-23 14:01:02",
//"pcsList":[{"index":1,"communication_error":false,"stop":false,"run":false,"charge":false,"discharge":false,"warning":false,"fault":false,"frequency":60.03,"ac_active_power":222.2,"igbt_max_temperature":56.4,"ac_voltage_rs":381.2,"ac_voltage_st":382.2,"ac_voltage_tr":380.1,"ac_current_r":888.8,"ac_current_s":888.8,"ac_current_t":888.8,"dc_voltage":890.4,"dc_current":432.1}],
//"batList":[{"index":1,"communication_error":false,"stop":false,"run":false,"charge":false,"discharge":false,"warning":false,"fault":false,"total_racks":2,"soc":80.5,"soh":99.9,"dc_voltage":888.8,"dc_current":456.7,"max_cell_voltage":3.245,"min_cell_voltage":3.121,"max_module_temperature":27.6,"min_module_temperature":23.5,"racks":[{"index":1,"communication_error":false,"stop":false,"run":false,"charge":false,"discharge":false,"warning":false,"fault":false,"soc":80.5,"soh":99.9,"dc_voltage":888.8,"dc_current":456.7,"max_cell_voltage":3.245,"min_cell_voltage":3.121,"max_module_temperature":27.6,"min_module_temperature":23.5},{"index":2,"communication_error":false,"stop":false,"run":false,"charge":false,"discharge":false,"warning":false,"fault":false,"soc":81.5,"soh":99.9,"dc_voltage":888.8,"dc_current":456.7,"max_cell_voltage":3.245,"min_cell_voltage":3.121,"max_module_temperature":27.6,"min_module_temperature":23.5}]}],
//"etc":{"battery_room_max_temperature":27.6,"battery_room_max_humidity":55.5}}
StringBuilder jsonBuild = new StringBuilder("{")
.append(" \"plantSeq\":92, \"todayEnergy\":1600, \"todayHours\":1.5, \"lastdayEnergy\":1800, \"lastdayHours\":2.9, \"lifetimeEnergy\":20000, \"currPower\":55, ")
.append(" \"ivtdata\" : { \"values\" : [")
//.append(" \"ivtdatas\" : [")
.append(" {\"ivtIdx\":\"1\",\"acPower\":\"11000\",\"acFreq\":\"60\",\"apparentPower\":\"101\",\"reactivePower\":\"101\",\"acEnergy\":\"101\",\"todayEnergy\":\"75000\",\"lifetimeEnergy\":\"10001\",\"dcCurr\":\"21\",\"dcVolt\":\"301\",\"dcPower\":\"11001\",\"temp\":\"10\",\"powerFactor\":\"100\",\"ivtStatus\":\"01\"},")
.append(" {\"ivtIdx\":\"2\",\"acPower\":\"12000\",\"acFreq\":\"60\",\"apparentPower\":\"102\",\"reactivePower\":\"102\",\"acEnergy\":\"102\",\"todayEnergy\":\"80000\",\"lifetimeEnergy\":\"10002\",\"dcCurr\":\"22\",\"dcVolt\":\"302\",\"dcPower\":\"12002\",\"temp\":\"20\",\"powerFactor\":\"100\",\"ivtStatus\":\"01\"},")
.append(" {\"ivtIdx\":\"3\",\"acPower\":\"13000\",\"acFreq\":\"61\",\"apparentPower\":\"103\",\"reactivePower\":\"103\",\"acEnergy\":\"103\",\"todayEnergy\":\"85000\",\"lifetimeEnergy\":\"10003\",\"dcCurr\":\"23\",\"dcVolt\":\"303\",\"dcPower\":\"13003\",\"temp\":\"20\",\"powerFactor\":\"100\",\"ivtStatus\":\"00\"}")
.append(" ] } } ");
%>
인버터 정상 데이타 등록 테스트 ${DateUtil.getDate("HH:mm:ss")}
<%@ include file="../layout/include_footer.jsp" %>