Browse Source

Real Light Control Service's package and service name was applied.

Trishia 4 năm trước cách đây
mục cha
commit
d654af1b44

+ 2 - 2
app/src/main/java/org/iotivity/bridge/homeserver/BridgeService.java

@@ -307,9 +307,9 @@ public class BridgeService extends IntentService {
         Log.d(TAG, "SecheduledTaskInit : bindLightControlService() called.");
 
         // Light Control Service Remote Bind
-        //lIntent.setClassName("com.icontrols.service.control", "com.iconstrols.service.control.LightControlService"); // TODO : need to modify with real info
         Intent lIntent = new Intent();
-        lIntent.setClassName("org.iotivity.bridge.homeserver", "org.iotivity.bridge.homeserver.BridgeService");
+        //lIntent.setClassName("org.iotivity.bridge.homeserver", "org.iotivity.bridge.homeserver.BridgeService"); // self test for Light Control Service
+        lIntent.setClassName("kr.co.icontrols.ocfservice", "kr.co.icontrols.ocfservice.LightControlService");
         lIntent.setAction(ILightControlService.class.getName());
         bindService(lIntent, lightConn, Context.BIND_AUTO_CREATE);
         Log.d(TAG, "bind Light Control Service with Remote Connection");