Errors in the sysfs documentation
-
Hello,
In this example :cat /run/unipi-plc/by-sys/DO1.01/value
that you give on this page : https://kb.unipi.technology/en:sw:02-apis:04-sysfs
there is an error because I need to use this command to get a convincing result :cat /run/unipi-plc/by-sys/DI1.1/value
I think you need to review this document, don't you? -
@paolo
Hello,
I am afraid I don't understand your problem, what error do you get? Could you describe more your issue? -
@cleve Yes, of course, there's a writing error in your example. To read the value of a digital output, you should write DO1.1 instead of DO1.01 (without the 0). It's the same for a digital input, you indicate DI1.01 when you should write DI1.1 (without the 0).
-
@paolo
Right, I did not notice the 0, the commands are just examples and it's possible to list the files in the directory, but I will correct that.