Skip to content

9.ide_blockly_to_python

Blockly to python interface: blockly to pythonIDE.

Message:

json
{
    "cmd": "ide_blockly_to_python",
    "data": {
        "version":"lite6",
        "user_Id":"test",
        "category":"myapp",
        "appName":"1211"
    },
    "id": "1"
}

Request:

datatypeRequired fieldsDescription
versionstringyesLite6 arm passes “lite6”, other types pass null
user_IdstringyesDefault pass test
categorystringyesDefault pass myapp
appNamestringyesBlockly files to be converted

Respons:

code=0->Success;
code!=0->-1 means that the Blockly file does not exist, and 1 means that the conversion failed.