Simple File Operations

Flutter Example:

/// Simple file operations event
funcSimpleFileOpt(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.func_simple_file_operations),

/// Simple file operations
libManager.send(evt: CmdEvtType.funcSimpleFileOpt, json: jsonEncode(json));

JSON Fields Sent by the App:

Field Name Field Type Field Description
operate int Operation type
0: Get
1: Overwrite
2: Delete
3: Copy
index int Index number
dest_index int Destination index, only used for copying, invalid for other cases

Example:

{
  "operate": 0,
  "index": 1,
  "dest_index": 0
}

JSON Fields Received by the App:

Field Name Field Type Field Description
error int Error code
0 for success, others for errors
operate int Operation type
0: Get
1: Overwrite
2: Delete
index int Index number

Example:

{
  "error": 0,
  "operate": 0,
  "index": 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 ""