|  | @@ -105,7 +105,7 @@ public class BridgeService extends IntentService {
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |      public static final int PAIRWISED_DISCOVERY_PEROID = 90 ;
 |  |      public static final int PAIRWISED_DISCOVERY_PEROID = 90 ;
 | 
												
													
														
															|  | -    public static final int LIGHTCONTROL_DISCOVERY_PEROID = 180 ;
 |  | 
 | 
												
													
														
															|  | 
 |  | +    public static final int LIGHTCONTROL_DISCOVERY_PEROID = 60 ;
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |      @Override
 |  |      @Override
 | 
												
													
														
															|  |      public void onCreate() {
 |  |      public void onCreate() {
 | 
												
											
												
													
														
															|  | @@ -673,8 +673,14 @@ public class BridgeService extends IntentService {
 | 
												
													
														
															|  |                              // doGetProperties with Light Control Service
 |  |                              // doGetProperties with Light Control Service
 | 
												
													
														
															|  |                              String prev_props = bridgeServer.getVirtualOCFDeviceProperties(device_sn, resource.getResourceUri());
 |  |                              String prev_props = bridgeServer.getVirtualOCFDeviceProperties(device_sn, resource.getResourceUri());
 | 
												
													
														
															|  |                              String properies = lightControlBinder.doGetResourceProperties(device_sn, resource.getResourceUri());
 |  |                              String properies = lightControlBinder.doGetResourceProperties(device_sn, resource.getResourceUri());
 | 
												
													
														
															|  | 
 |  | +                            /*Log.d(TAG, "doGetLightControlResources() : device_sn = " + device_sn +", Uri = "
 | 
												
													
														
															|  | 
 |  | +                                    + resource.getResourceUri()+", properies = " + properies);*/
 | 
												
													
														
															|  |                              bridgeServer.addOrUpdateVirtualOCFDeviceProperties(device_sn, resource.getResourceUri(), properies);
 |  |                              bridgeServer.addOrUpdateVirtualOCFDeviceProperties(device_sn, resource.getResourceUri(), properies);
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | 
 |  | +                            String after_props = bridgeServer.getVirtualOCFDeviceProperties(device_sn, resource.getResourceUri());
 | 
												
													
														
															|  | 
 |  | +                            /*Log.d(TAG, "doGetLightControlResources() : device_sn = " + device_sn +", Uri = "
 | 
												
													
														
															|  | 
 |  | +                                    + resource.getResourceUri()+", after properies = " + after_props);*/
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  |                              /*Log.d(TAG,"(1) prev_props : " +prev_props + ", cur_props : " +properies );
 |  |                              /*Log.d(TAG,"(1) prev_props : " +prev_props + ", cur_props : " +properies );
 | 
												
													
														
															|  |                              // TODO : need to check // notify to Observers for changed properties's value
 |  |                              // TODO : need to check // notify to Observers for changed properties's value
 | 
												
													
														
															|  |                              if(!bridgeServer.compareVirtualOCFDeviceProperties(device_sn, resource.getResourceUri(), properies)) {
 |  |                              if(!bridgeServer.compareVirtualOCFDeviceProperties(device_sn, resource.getResourceUri(), properies)) {
 | 
												
											
												
													
														
															|  | @@ -719,7 +725,7 @@ public class BridgeService extends IntentService {
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |      public void broadcastResult(int result_code, String result_data) {
 |  |      public void broadcastResult(int result_code, String result_data) {
 | 
												
													
														
															|  | -        mHandler.sendMessage(mHandler.obtainMessage(MSG_RESULT,result_code, 0, result_data));
 |  | 
 | 
												
													
														
															|  | 
 |  | +        mHandler.sendMessage(mHandler.obtainMessage(MSG_RESULT, result_code, 0, result_data));
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |      private final Handler mHandler = new Handler() {
 |  |      private final Handler mHandler = new Handler() {
 | 
												
											
												
													
														
															|  | @@ -879,7 +885,7 @@ public class BridgeService extends IntentService {
 | 
												
													
														
															|  |              }
 |  |              }
 | 
												
													
														
															|  |          }, 10, PAIRWISED_DISCOVERY_PEROID, TimeUnit.SECONDS); // 180 sec interval after 10sec delay
 |  |          }, 10, PAIRWISED_DISCOVERY_PEROID, TimeUnit.SECONDS); // 180 sec interval after 10sec delay
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -        executorPairwised.scheduleAtFixedRate(new Runnable() {
 |  | 
 | 
												
													
														
															|  | 
 |  | +        /*executorPairwised.scheduleAtFixedRate(new Runnable() {
 | 
												
													
														
															|  |              @Override
 |  |              @Override
 | 
												
													
														
															|  |              public void run() {
 |  |              public void run() {
 | 
												
													
														
															|  |  
 |  |  
 | 
												
											
												
													
														
															|  | @@ -887,7 +893,7 @@ public class BridgeService extends IntentService {
 | 
												
													
														
															|  |                  Log.d(TAG, "getAllDiscoveredDevices() : "+getAllDiscoveredDevices());
 |  |                  Log.d(TAG, "getAllDiscoveredDevices() : "+getAllDiscoveredDevices());
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |              }
 |  |              }
 | 
												
													
														
															|  | -        }, 20, PAIRWISED_DISCOVERY_PEROID, TimeUnit.SECONDS); // 180 sec interval after 10sec delay
 |  | 
 | 
												
													
														
															|  | 
 |  | +        }, 20, PAIRWISED_DISCOVERY_PEROID, TimeUnit.SECONDS); // 180 sec interval after 10sec delay*/
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |      public void stopScheduledTaskForPairwised() {
 |  |      public void stopScheduledTaskForPairwised() {
 |