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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login