| | |
| | | |
| | | import com.chad.library.adapter.base.BaseQuickAdapter; |
| | | import com.chad.library.adapter.base.listener.OnItemClickListener; |
| | | import com.hdl.sdk.common.config.AuthenticateConfig; |
| | | import com.hdl.sdk.connect.config.HDLLinkConfig; |
| | | import com.hdl.sdk.connect.socket.HDLAuthSocket; |
| | | import com.hdl.sdk.connect.socket.HDLSocket; |
| | | import com.hdl.sdk.connect.bean.DeviceControlRequest; |
| | |
| | | tv = findViewById(R.id.state_tv); |
| | | rv = findViewById(R.id.rv); |
| | | rv.setLayoutManager(new LinearLayoutManager(this)); |
| | | AuthenticateConfig.getInstance().setLocalEncrypt(true); |
| | | AuthenticateConfig.getInstance().setLocalSecret("5648d9b9cafd30dd"); |
| | | HDLLinkConfig.getInstance().setLocalEncrypt(true); |
| | | HDLLinkConfig.getInstance().setLocalSecret("5648d9b9cafd30dd"); |
| | | |
| | | ActivityResultLauncher<String[]> launcher = registerForActivityResult(new ActivityResultContracts.RequestMultiplePermissions(), new ActivityResultCallback<Map<String, Boolean>>() { |
| | | @Override |