Get Device Log State
Menu: Each device supports getDeviceLogState
Flutter Example:
/// Get device log state event number
getDeviceLogState(
evtBase: _VBusEvtBase.base_app_get,
evtType: _VBusEvtType.app_get_devices_log_state),
/// Get device log state
libManager.send(evt: CmdEvtType.getDeviceLogState, json: jsonEncode(json));
JSON fields received by the App:
Field Name | Field Type | Field Description |
---|---|---|
type | int | 0: No corresponding log 1: Firmware restart log 2: Firmware exception |
err_code | int | Error code of firmware restart log, 0 is normal |
Example:
{
"err_code": 4,
"type": 1
}