mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[ntcore] Add ability to announce mDNS for server (#8373)
We can use this as a new way of resolving addresses.
This commit is contained in:
@@ -103,9 +103,9 @@ public abstract class RobotBase implements AutoCloseable {
|
||||
// subscribe to "" to force persistent values to propagate to local
|
||||
m_suball = new MultiSubscriber(inst, new String[] {""});
|
||||
if (!isSimulation()) {
|
||||
inst.startServer("/home/systemcore/networktables.json");
|
||||
inst.startServer("/home/systemcore/networktables.json", "", "robot");
|
||||
} else {
|
||||
inst.startServer();
|
||||
inst.startServer("networktables.json", "", "robot");
|
||||
}
|
||||
|
||||
// wait for the NT server to actually start
|
||||
|
||||
Reference in New Issue
Block a user