Commit 959500340e9a9177a5e69ae0226c7407aedc61b0

Authored by 李攀
1 parent 7ead9377

remove test data

... ... @@ -64,7 +64,7 @@ public class SmartControlService extends BaseService implements EventListener<St
64 64 private RoomInfo roomInfo;
65 65 private RoomQrCodeInfo info;
66 66
67   - private String lockMac = "";
  67 + private String lockMac = "CA:EC:56:60:CA:79";
68 68 private boolean needReport = false;
69 69 //___________________________________________
70 70
... ... @@ -87,10 +87,7 @@ public class SmartControlService extends BaseService implements EventListener<St
87 87 @Override
88 88 public int onStartCommand(Intent intent, int flags, int startId) {
89 89 super.onStartCommand(intent, flags, startId);
90   - //TODO check super()
91 90 new SmartControlPresenter(this);
92   -// ServiceCommandCollector.addService(this, this.getClass());
93   -// Log.d("BaseService", this.getClass().toString() + "");
94 91 mApplication = (FangTangApplication) getApplication();
95 92 mApplication.doInit();
96 93 Log.d(TAG, "onStartCommand");
... ... @@ -137,8 +134,6 @@ public class SmartControlService extends BaseService implements EventListener<St
137 134 if (hasSystemFeatureBluetoothLe) {
138 135 unregisterReceiver(bleBroadcastReceiver);
139 136 }
140   -// Log.d("BaseService", this.getClass().toString() + "");
141   -// ServiceCommandCollector.removeService(this);
142 137 unregisterReceiver(mReceiver);
143 138 EventBus.getDefault().unregister(this);
144 139 super.onDestroy();
... ... @@ -200,7 +195,7 @@ public class SmartControlService extends BaseService implements EventListener<St
200 195
201 196 });
202 197 String openCMD = "Open the door";
203   - GREENBLE.send(this, "CA:EC:56:60:CA:79", openCMD.getBytes());
  198 + GREENBLE.send(this, lockMac, openCMD.getBytes());
204 199 }
205 200
206 201 @Subscribe(threadMode = ThreadMode.MAIN)
... ...
Please register or login to post a comment