|
@@ -107,17 +107,17 @@ public class BridgeService extends IntentService {
|
|
@Override
|
|
@Override
|
|
public void onCreate() {
|
|
public void onCreate() {
|
|
super.onCreate();
|
|
super.onCreate();
|
|
-
|
|
|
|
Log.d(TAG, "onCreate()");
|
|
Log.d(TAG, "onCreate()");
|
|
|
|
+
|
|
// start first time only
|
|
// start first time only
|
|
bridgeServer = new BridgeServer(this);
|
|
bridgeServer = new BridgeServer(this);
|
|
|
|
|
|
- // start Light Control Service Client // TODO : should change this function with real Light Control Service of Wallpad
|
|
|
|
- //bindLightControlService();
|
|
|
|
-
|
|
|
|
- // start Periodic Tasks
|
|
|
|
|
|
+ // start Scheduled Tasks for pairwised devices
|
|
startScheduledTaskForPairwised();
|
|
startScheduledTaskForPairwised();
|
|
- //startScheduledTaskForLightControl();
|
|
|
|
|
|
+
|
|
|
|
+ // start Light Control Service Client and ScheduledTask
|
|
|
|
+ bindLightControlService();
|
|
|
|
+ startScheduledTaskForLightControl();
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|