Class Network

java.lang.Object
frc.spectrumLib.util.Network

public class Network extends Object
Common Network Utilities
  • Constructor Details

    • Network

      public Network()
  • Method Details

    • getMACaddress

      public static String getMACaddress()
      Gets the MAC address of the robot
      Returns:
      the MAC address of the robot
    • getIPaddress

      public static String getIPaddress()
      Gets the IP address of the robot
      Returns:
      the IP address of the robot
    • getIPaddress

      public static String getIPaddress(String deviceNameAddress)
      Resolves and returns the IP address of a device identified by its mDNS or hostname address (e.g. "limelight.local").
      Parameters:
      deviceNameAddress - the hostname or mDNS name to resolve
      Returns:
      the resolved IP address string, or "UNKNOWN" if resolution fails