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:
data | type | Required fields | Description |
---|---|---|---|
version | string | yes | Lite6 arm passes “lite6”, other types pass null |
user_Id | string | yes | Default pass test |
projectName | string | yes | Parent directory of the project |
filePath | string | yes | Relative path to the pythonide file |
fileData | string | yes | Contents of the pythonide file |
complete | bool | yes | Whether the pythonIDE input prompt is needed |
Respons:
code=0->Success;
code!=0->-32 indicates a write error