Package frc.spectrumLib.util
Class Network
java.lang.Object
frc.spectrumLib.util.Network
Common Network Utilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the IP address of the robotstatic StringgetIPaddress(String deviceNameAddress) Resolves and returns the IP address of a device identified by its mDNS or hostname address (e.g.static StringGets the MAC address of the robot
-
Constructor Details
-
Network
public Network()
-
-
Method Details
-
getMACaddress
Gets the MAC address of the robot- Returns:
- the MAC address of the robot
-
getIPaddress
Gets the IP address of the robot- Returns:
- the IP address of the robot
-
getIPaddress
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
-