|
@@ -58,6 +58,7 @@ import com.artncore.wallpadapi.LightAPI;
|
|
|
import com.artncore.wallpadapi.MultiSwitchAPI;
|
|
|
import com.artncore.wallpadapi.SdbAPI;
|
|
|
import com.artncore.wallpadapi.Sdb_LivingRoomLightAPI;
|
|
|
+import com.artncore.wallpadapi.SmartKeyRfDoorAPI;
|
|
|
import com.artncore.wallpadapi.WallPadAPI;
|
|
|
import com.artncore.wallpadimap.RetProci;
|
|
|
import com.artncore.wallpadimap.WallPadiMAPNotifyAPI;
|
|
@@ -317,7 +318,11 @@ public class MainActivity extends WpadActivity {
|
|
|
|
|
|
public static int nMissedCallCnt = 0, nVisitorPicCnt = 0, nNoticeCnt = 0, nParcelCnt = 0, nPostCnt = 0, nElecVehicleChangingCnt = 0;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+ * 카메라 API
|
|
|
+ */
|
|
|
+ SmartKeyRfDoorAPI mSmartKeyRfDoorAPI = null;
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -10140,10 +10145,21 @@ public class MainActivity extends WpadActivity {
|
|
|
private void RecordDelayOn()
|
|
|
{
|
|
|
try {
|
|
|
+ recordDelayHandler.removeMessages(0);
|
|
|
Log.d(TAG, "[RecordDelay]");
|
|
|
Common.bRecordDelay = true;
|
|
|
+
|
|
|
Message msg = recordDelayHandler.obtainMessage();
|
|
|
+ msg.what = 0;
|
|
|
recordDelayHandler.sendMessageDelayed(msg, 90 * 1000);
|
|
|
+
|
|
|
+
|
|
|
+ if(mSmartKeyRfDoorAPI == null && mWallPadAPI!=null ) mSmartKeyRfDoorAPI = mWallPadAPI.Get_SmartKeyRfDoorController();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if (mSmartKeyRfDoorAPI != null) mSmartKeyRfDoorAPI.SetLEDmode(Common.SmartRFCamLEDMode.LED_AUTO_OFF);
|
|
|
+ else Log.w(TAG, "[RecordDelayOn] smartKeyRfDoorAPI is null!!");
|
|
|
}
|
|
|
catch (Exception e)
|
|
|
{
|
|
@@ -10177,6 +10193,11 @@ public class MainActivity extends WpadActivity {
|
|
|
@Override
|
|
|
public void handleMessage(Message msg) {
|
|
|
Common.bRecordDelay = false;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if (mSmartKeyRfDoorAPI != null) mSmartKeyRfDoorAPI.SetLEDmode(Common.SmartRFCamLEDMode.LED_AUTO_ON);
|
|
|
+ else Log.w(TAG, "[ctrlSmartIOTCCamLEDMode]recordDelayHandler smartKeyRfDoorAPI is null!!");
|
|
|
}
|
|
|
};
|
|
|
|