Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to Python 3 #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MatthewBoeding
Copy link

Tested using python 3.10.12

Changes:

  • Path resolution for single directory library
  • Removal of Python 2 syntax
    • long() function no longer needs called
    • Removed "L" suffix as all integers are long in Python 3
    • ord() function not required for byte to integer conversion
    • xrange() transitioned to range()
    • sys.maxint no longer required for long to int concatenations
  • Bit fields updated for DNP3RequestDataObjects()
    • BitFields "Obj" and "Var" updated to 8 bits from 4
  • Created Example script of packet generation

To Do:

  • Data chunk decoding
    • Number of items, Point number, control code, count on/off time and control status should be implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant