Skip to content

10.ide_write_file

Write content to ide project file interface:
Write content to the ide project file.

Message:

json
{
    "cmd": "ide_write_file",
    "data": {
        "version":"lite6",
        "user_Id":"test",
        "projectName":"BlocklyToPython",
        "filePath":"/test_0907.py",
        "fileData":"",
        "complete":false, 
    },
    "id": "1"
}

\

Request:

datatypeRequired fieldsDescription
versionstringyesLite6 arm passes “lite6”, other types pass null
user_IdstringyesDefault pass test
projectNamestringyesParent directory of the project
filePathstringyesRelative path to the pythonide file
fileDatastringyes Contents of the pythonide file
completeboolyes Whether the pythonIDE input prompt is needed

Respons:

code=0->Success;
code!=0->-32 indicates a write error