Why were pymodbus.utilities 's checkCRC, computeCRC functions removed in pymodbus 3.6.6 when they were working in 3.6.5? Is there a better recommendation for what I should use for CRC? #2178
-
My code broke after updating to 3.6.6 and I was wondering if it wasn't best practice to use those functions anymore. And if so, what I should be using instead. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
These function are not removed but moved, the RTU framer depends on the CRC check. The functions are considered internal and not part of the API, and I am not sure I understand why you need to use them ? |
Beta Was this translation helpful? Give feedback.
-
you are basically doing your best not to use the features of pymodbus 😄 Pymodbus offers a high level API to read register, coils etc, so really no need to create modbus packets. Take a look at e.g. our example simple_sync_client.py Your way of doing it, still works with the newest pymodbus version, you just need to adapt your code, as is basically the case with any library update. |
Beta Was this translation helpful? Give feedback.
-
Look at |
Beta Was this translation helpful? Give feedback.
These function are not removed but moved, the RTU framer depends on the CRC check.
The functions are considered internal and not part of the API, and I am not sure I understand why you need to use them ?