|
@@ -432,6 +432,24 @@ public class EnergyMeterAPI extends WallPadDevAPI
|
|
|
return SendNReadCMD_int(define.APICMD_SINKCTRL, "SetConcentOnOff", RoomIndex, ConcentIndex, ByteOnOff, 0, 0);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 전체 콘센트 제어
|
|
|
+ * @param RoomIndex
|
|
|
+ * @param ConcentIndex
|
|
|
+ * @param OnOff
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public int SetConcentAllOnOff(byte RoomIndex, byte ConcentIndex, boolean OnOff)
|
|
|
+ {
|
|
|
+ // 2. Parameter Make
|
|
|
+ byte ByteOnOff = 0;
|
|
|
+ if(OnOff) ByteOnOff = 1;
|
|
|
+
|
|
|
+ // 3. Send
|
|
|
+ return SendNReadCMD_int(define.APICMD_SINKCTRL, "SetConcentOnOff", RoomIndex, ConcentIndex, ByteOnOff, 0, 0);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 개별방 콘센트 차단값 설정
|
|
|
*
|