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

Fix the format of the MAC in model 16 #57

Merged
1 commit merged into from
Sep 12, 2019
Merged

Conversation

nielsbasjes
Copy link
Contributor

This simply changes the specified format of the MAC address in model 16 from an uint64 to eui48.
In my opinion this is a safe change because this does not change the format of the actual bits and/or their interpretation.
The MAC address is still stored in 64 bits (same as the uint64) in the same way and the value for 'unused' is the same as for the uint64 value for 'unused'.
The main reason for this change is that now downstream uses of this specification are better able to understand the way these bits should be interpreted (i.e. the first two bytes are useless).

This fixes #46 and a part of #41

@ghost ghost merged commit 5c566a9 into sunspec:master Sep 12, 2019
@nielsbasjes nielsbasjes deleted the FixMacAddress branch September 12, 2019 21:59
This pull request was closed.
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.

Inconsistent type for network MAC address
1 participant