Skip to content

Add possibility to change server tcp port in void setup. No more fixed port! #32

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
agdl opened this issue Jul 12, 2016 · 2 comments
Closed
Labels
status: waiting for information More information must be provided before work can proceed

Comments

@agdl
Copy link
Member

agdl commented Jul 12, 2016

From @5a2v0 on June 22, 2016 14:53

Before this mofication:

EthernetServer server(80);
void setup() {
//some stuff here
server.begin(); //User can't change initial port value
//other stuff here
}

Now:

EthernetServer server; //without port declaration but still working old declaration system...
void setup() {
//some stuff here
unsigned int tcp = EEPROM.read(x)
server.begin(tcp); //User can now use a different port, maybe saved in eprom directly from the sketch in a configuration page that permise to choice a value for the tcp port...
//other stuff here
}

Many thanks to Arduino's forum user: SukkoPera

Copied from original issue: arduino/Arduino/pull/5062

@agdl agdl added Library: Ethernet status: waiting for information More information must be provided before work can proceed labels Jul 12, 2016
@agdl
Copy link
Member Author

agdl commented Jul 12, 2016

From @sandeepmistry on July 12, 2016 13:0

Hi @5a2v0,

Thank you for submitting this change. Could you please resubmit a pull request to this repo: https://github.com/arduino-libraries/Ethernet

Then close this pull request. The libraries/Ethernet folder is synced with the other repo. I have linked to.

@q2dg
Copy link

q2dg commented Aug 2, 2016

Maybe this issue should be reopen here again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for information More information must be provided before work can proceed
Projects
None yet
Development

No branches or pull requests

2 participants