MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / networkName

Method networkName

src/astroprint/plugin/services/network.py:80–86  ·  view source on GitHub ↗
(self, newName, sendMessage)

Source from the content-addressed store, hash-verified

78 return sendResponse("unable_get_wifi",True)
79
80 def networkName(self, newName, sendMessage):
81 nm = networkManager()
82
83 if newName :
84 nm.setHostname(newName)
85
86 sendMessage({'name':nm.getHostname()})
87
88 def networkSettings(self, data, sendMessage):
89 nm = networkManager()

Callers

nothing calls this directly

Calls 3

networkManagerFunction · 0.90
setHostnameMethod · 0.45
getHostnameMethod · 0.45

Tested by

no test coverage detected