| | |
| | | import com.anyun.exam.lib.MyLog; |
| | | import com.google.gson.Gson; |
| | | |
| | | import safeluck.drive.evaluation.Constant; |
| | | import safeluck.drive.evaluation.bean.DeviceWorkMCU; |
| | | |
| | | public class ShutdownBroadcastReceiver extends BroadcastReceiver { |
| | |
| | | if (intent.getAction().equalsIgnoreCase(ACTION_SHUTDOWN)){ |
| | | DeviceWorkMCU deviceWorkMCU = new DeviceWorkMCU(); |
| | | deviceWorkMCU.event = 1; |
| | | deviceWorkMCU.timeout = 13; |
| | | deviceWorkMCU.timeout = Constant.SHUTDOWN_TIME; |
| | | MyLog.i(TAG,"关机广播"); |
| | | AYSdk.getInstance().sendCmd(0x8010,gson.toJson(deviceWorkMCU)); |
| | | } |