Closed u1alive4ever closed 4 years ago
Hi,
This is a good first Issue, thank you for reporting it! I won't complete remove the overloads for the methods, but I would mark them as deprecated. I kept them in the code just for backward capability scopes and for an easy migration from snap7.
Best regards, Federico
Hi, I've fixed this issue in develop branch, I would like to add more internal usages of those two enums internally than I'll merge this feature in master. Best regards, Federico
Sorry for my English.
In my work, I decided to use your code, but during the development of the project, a question arose. What is the reason for choosing to use constants instead of enum?
Example from wiki:
where:
and
The variables that we pass to the ReadArea method, such as Area and WordLen, are not obvious, and they are very easy to make mistakes in. You can convert the code as follows.
This way, you restrict the variables that you can pass while keeping their values. This is just a small example. there are a lot of constants in the code, starting from the block language and ending with "Error codes". What is the reason for this?