Hello! I’m using following yakut command:
yakut call 4 uavcan.file.read 0 "/file"
and have a problem “Error: Got unexpected extra argument (/file)”
What should be corrected request command for reading file from UAVCAN?
Thanks you!
Hello! I’m using following yakut command:
yakut call 4 uavcan.file.read 0 "/file"
and have a problem “Error: Got unexpected extra argument (/file)”
What should be corrected request command for reading file from UAVCAN?
Thanks you!
The YAML field spec should be provided in one argument exactly and be a valid YAML document:
yakut call 4 uavcan.file.read '[0, "/file"]'
You can also specify the fields manually:
yakut call 4 uavcan.file.read '{offset: 0, path: "/file"}'
or even:
yakut call 4 uavcan.file.read '{offset: 0, path: {path: "/file"}}'
Thanks you, but corrected following code with " instead ':
yakut call 4 uavcan.file.read "[0, '/file']"