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
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2025-04-30 09:32:44

results matching ""

    No results matching ""