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

Wirepas Interoperability #62

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

Conversation

E-Heerschap
Copy link

Adds support for interoperability via extended UID and standardised parameters

  • Extended UID provisioning method added to provisioning_method_e enum in provisioning library.
  • Joining network address and channel changed to new standardised values.
  • Examples added for Extended UID, secure and unsecure methods which correspond to values defined in this pull request.
  • to_bytes in the genConfigHex.py now converts integers to bytes

Copy link
Contributor

@GwendalRaoul GwendalRaoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
As per our process, we will integrate the change in our internal repo and it will be visible on GitHub in next release.

@@ -41,7 +41,7 @@ def to_bytes(param):
else:
param = bytes(param, 'utf-8')
elif type(param) is int:
param.to_bytes((param.bit_length() + 7) // 8, byteorder='big')
param = param.to_bytes(max(1, (param.bit_length() + 7) // 8), byteorder='big')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch for the max in case param is 0 !

@E-Heerschap
Copy link
Author

@GwendalRaoul

Added a commit to patch a security bug. The IV was being left as all zeros previously. This initialises the IV appropriately.

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.

3 participants