diff --git a/so-device/src/main/java/com/pineone/icbms/so/device/logic/DeviceManagerLogic.java b/so-device/src/main/java/com/pineone/icbms/so/device/logic/DeviceManagerLogic.java index e2e3e14b..28527a2d 100644 --- a/so-device/src/main/java/com/pineone/icbms/so/device/logic/DeviceManagerLogic.java +++ b/so-device/src/main/java/com/pineone/icbms/so/device/logic/DeviceManagerLogic.java @@ -121,7 +121,7 @@ public String deviceExecute(String deviceId,String deviceCommand, String session } // Device 제어 요청 보냄. - ResultMessage resultMessage = deviceControlProxy.deviceControlRequest(ClientProfile.SI_DEV_CONTOL_URI,deviceControlMessage); + ResultMessage resultMessage = deviceControlProxy.deviceControlRequest(ClientProfile.SI_CONTOL_URI,deviceControlMessage); logger.debug(LogPrint.LogMethodNamePrint() + " | Device Control Result : " + " , Device Uri = " + device.getDeviceUri() + " , Result : " + resultMessage + " , Session ID = " + sessionId); /** diff --git a/so-device/src/main/java/com/pineone/icbms/so/device/proxy/DeviceSIProxy.java b/so-device/src/main/java/com/pineone/icbms/so/device/proxy/DeviceSIProxy.java index aafe2439..974601f7 100644 --- a/so-device/src/main/java/com/pineone/icbms/so/device/proxy/DeviceSIProxy.java +++ b/so-device/src/main/java/com/pineone/icbms/so/device/proxy/DeviceSIProxy.java @@ -64,7 +64,7 @@ public String deviceSubscriptionRequest(String deviceUri) { // DeviceLogic에 생성되거나 제어되면 서브스크립트 걸어야 겠군. // 현제 정책이 안되어 있어서. 등록되면 걸지.. 제어시 걸지는 고려 필요. - String responseData = clientService.requestPostServiceReceiveString(ClientProfile.SI_DEV_SUBSCRIPTION_URI, requestBody); + String responseData = clientService.requestPostServiceReceiveString(ClientProfile.SI_SUBSCRIPTION_URI, requestBody); // ResponseData{ "code" : "2000", "message" : "", "content" : "" } logger.debug(LogPrint.LogMethodNamePrint() + " | Subscription Request : Response Data = " + responseData); ResultMessage resultMessage = new ResultMessage(); @@ -92,7 +92,7 @@ public String deviceSubscriptionReleaseRequest(String deviceUri) { // DeviceLogic에 생성되거나 제어되면 서브스크립트 걸어야 겠군. // 현제 정책이 안되어 있어서. 등록되면 걸지.. 제어시 걸지는 고려 필요. - String responseData = clientService.requestPostServiceReceiveString(ClientProfile.SI_DEV_SUBSCRIPTION_RELEASE_URI, requestBody); + String responseData = clientService.requestPostServiceReceiveString(ClientProfile.SI_SUBSCRIPTION_RELEASE_URI, requestBody); logger.debug(LogPrint.LogMethodNamePrint() + " | Device SubscriptionRelease Request Result = " + responseData); logger.info("<================ Device SubscriptionRelease Request End ================>"); return responseData; diff --git a/so-util/src/test/java/com/pineone/icbms/so/util/session/SessionTest.java b/so-util/src/test/java/com/pineone/icbms/so/util/session/SessionTest.java index 26602688..5f8db72a 100644 --- a/so-util/src/test/java/com/pineone/icbms/so/util/session/SessionTest.java +++ b/so-util/src/test/java/com/pineone/icbms/so/util/session/SessionTest.java @@ -5,6 +5,7 @@ import org.junit.Test; import java.text.DateFormat; +import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Locale; @@ -48,4 +49,13 @@ public void name() throws Exception { Date currentTime = calendar.getTime(); System.out.println(currentTime); } + + @Test + public void dbTime(){ + String time = "583bc66ecf8b437a86b83375"; + String hexTime = time.substring(0,8); + long date = Long.parseLong(hexTime,16); + System.out.println(new SimpleDateFormat("yyyy-mm-dd HH-mm:ss").format(new Date(date*1000))); + } + }