Change network settings with buttons

I'm creating a network tester to check if a list of web-pages are reachable.
This needs to be done on several different networks and needs to checked for a specific IP on that network, so DHCP is not really an option.

So the question is, is it possible to change the network settings on the arduino (with a network shield and display) without using the IDE?

Can you show us the logic you will use with the buttons? Once you can show that, you can answer your own question.

1 Like

The following is what I've added to the software.
My idea was to replace the values with variables, then by pressing a button for up and one for down to adjust the values.
This is my first time trying something like this, so if you know a better way please let me know.

void Static_IP(){
  IPAddress ip(192, 168, 1, 17);
  IPAddress subnet(255, 255, 255, 0);
  IPAddress gateway(192, 168, 1, 230);
  IPAddress myDns(192, 168, 1, 1);
  Ethernet.begin(mac, ip, myDns, gateway);
  //Ethernet.setLocalIP(ip);  // change the gateway IP address
  Ethernet.setSubnetMask(subnet);
  Serial.println(Ethernet.localIP());
  if (Ethernet.linkStatus() == LinkOFF) {
  No_connection();
  }
  else if (Ethernet.linkStatus() == LinkON){
  IP_settings();
  while (Ethernet.linkStatus() == LinkON){
    }
  }
}

I thought you were going to tie one push button switch to each address set, but I see you are doing a scrolling menu system. Learn about arrays and how to handle them. There are lots of threads on the forum relating to menu designs. Besides up and down push buttons, you need to have a "select" button.

Good to know, thank you for the tip!
I will check how to do some menu designs, since I have no clue how to do that :sweat_smile:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.