| | |
| | | import androidx.fragment.app.FragmentTransaction; |
| | | |
| | | import android.Manifest; |
| | | import android.app.Activity; |
| | | import android.content.Context; |
| | | import android.content.Intent; |
| | | import android.content.pm.PackageManager; |
| | |
| | | public void onBindView(Bundle savedInstanceState) { |
| | | setStatusBarTranslucent(); |
| | | getWindow().setNavigationBarColor(getColor(R.color.text_FF1C1C1E)); |
| | | |
| | | //初始化碎片 |
| | | initFragment(savedInstanceState); |
| | | //初始化 |
| | |
| | | @Override |
| | | public void onMessage(Object msg) { |
| | | |
| | | |
| | | if (msg == null) { |
| | | return; |
| | | } |
| | |
| | | if (response.getTopic() == null) { |
| | | return; |
| | | } |
| | | HdlLogLogic.print("监听到Modbus数据---" + new Gson().toJson(response), false); |
| | | // /HdlLogLogic.print("监听到Modbus数据---" + new Gson().toJson(response), false); |
| | | // if (response.getTopic().endsWith("custom/native/inverter/up")) { |
| | | HDLUniMP.UniCallBackBaseBean uniCallBackBaseBean = new HDLUniMP.UniCallBackBaseBean(); |
| | | uniCallBackBaseBean.setType(response.getTopic()); |