|
|
@@ -44,6 +44,7 @@ import com.example.bpa.helper.MQTT; |
|
|
|
import com.example.bpa.helper.MessageLog; |
|
|
|
import com.example.bpa.helper.ModbusTcpHelper; |
|
|
|
import com.example.bpa.helper.ModbusTcpServer; |
|
|
|
import com.example.bpa.helper.NetworkUtils; |
|
|
|
import com.example.bpa.helper.Speech; |
|
|
|
import com.example.bpa.helper.T; |
|
|
|
import com.example.bpa.helper.ThreadManager; |
|
|
@@ -175,6 +176,9 @@ public class MainActivity extends FragmentActivity implements View.OnClickListen |
|
|
|
* 初始化业务 |
|
|
|
*/ |
|
|
|
private void initBusiness() { |
|
|
|
//1.同步时间 |
|
|
|
NetworkUtils.SynchronizationTime(); |
|
|
|
|
|
|
|
Main.getInstance().ToggleEnvironment(); |
|
|
|
//PLC数据监控 |
|
|
|
ReconnectModbus(); |
|
|
@@ -183,8 +187,6 @@ public class MainActivity extends FragmentActivity implements View.OnClickListen |
|
|
|
OrderServer.Get().MqttInit(); |
|
|
|
//消息中心 |
|
|
|
RegisterMessage(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|