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

Method getDeviceId

src/astroprint/plugin/services/system.py:658–663  ·  view source on GitHub ↗
(self, data=None, sendResponse=None)

Source from the content-addressed store, hash-verified

656 sendResponse('no_command', True)
657
658 def getDeviceId(self, data=None, sendResponse=None):
659 boxId = boxrouterManager().boxId
660 if sendResponse:
661 sendResponse(boxId)
662
663 return boxId
664
665 def restartServer(self, data=None, sendResponse=None):
666 #We should reboot the whole device

Callers

nothing calls this directly

Calls 1

boxrouterManagerFunction · 0.90

Tested by

no test coverage detected