-
Notifications
You must be signed in to change notification settings - Fork 582
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
Updates and fixes to NMEA and Seatalk libraries #2351
base: main
Are you sure you want to change the base?
Conversation
Intensive real-world testing has been done on these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good all up, just few comments.
if (unicast.Address.AddressFamily == AddressFamily.InterNetwork) | ||
{ | ||
byte[] ipBytes = unicast.Address.GetAddressBytes(); | ||
// A virtual address usually looks like a router address, that means it's last part is .1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my router is not on a .1 address, not super sure you can use this trick
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit of trial-and-error code. It tries to find the main ethernet adapter of the local computer. The assumption here is that if an adapter has .1 then it's not the one connecting to the internet, but rather one that is used e.g. as a virtual adapter for docker/VM services.
Adds a few new messages to the NMEA0183 and Setalak protocols. Includes some new position and angle helper methods.
Microsoft Reviewers: Open in CodeFlow