Skip to content

Expand Ethernet interface intro #481

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

Closed
wants to merge 2 commits into from
Closed

Expand Ethernet interface intro #481

wants to merge 2 commits into from

Conversation

SeppoTakalo
Copy link
Contributor

@SeppoTakalo SeppoTakalo commented Apr 3, 2018

@AnotherButler Please review.

Seppo Takalo and others added 2 commits April 3, 2018 12:13
Copy link
Contributor

@AnotherButler AnotherButler left a comment

Choose a reason for hiding this comment

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

@SeppoTakalo I made some minor copy edits. Please make sure I didn't accidentally change the meaning of anything in the process. Also, I've left two comments for you to address.

1. Call the `connect` function.
1. Once you connect the EthInterface, you can use it as a
target for opening [network sockets](/docs/development/reference/network-socket.html).
### Configuration
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should move the content from this section into the connectivity configuration section.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't see that it fits there.
That configuration section is about build time configuration.

This however, refers to the network configuration, how to get the IP address. It is just that you either call the set_network() or not... There is nothing to configure through JSON settings.

Should I change the tittle?
Maybe IP address configuration would be better to reflect this.

@@ -1,19 +1,45 @@
## Ethernet

The EthInterface provides a C++ API for connecting to the internet over Ethernet.
The `EthInterface` provides a C++ API for connecting to the internet over Ethernet. By default, this class does not require any configuration. It is able to pick up the default Ethernet driver for the target and select the correct network stack.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there anything else developers should know about what this API is and what it does? This section seems short.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its hard to see what should be inserted here.

Networking architecture in general is described in #470 and Ethernet MAC drivers will be explained on their own page (to be moved to Handbook later on).

This whole API usage is concised in the 2 line example below in the Usage section.

EthernetInterface eth;
eth.connect();

@SeppoTakalo
Copy link
Contributor Author

This PR might conflict with #472 so merge that first.

@SeppoTakalo
Copy link
Contributor Author

Actually I'll merge this with #470 easier to work when I don't need to wait for PR to be merged.

@SeppoTakalo SeppoTakalo closed this Apr 5, 2018
@SeppoTakalo SeppoTakalo deleted the ethernet branch April 19, 2018 17:49
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.

2 participants