mirror of https://git.48k.eu/ogclient
Send OPG (opengnsys) status when a probe command is received
parent
38b57c4ae4
commit
336b02371d
|
@ -178,7 +178,9 @@ class ogRest():
|
||||||
threading.Thread(target=ogThread.poweroff).start()
|
threading.Thread(target=ogThread.poweroff).start()
|
||||||
|
|
||||||
def process_probe(self, client):
|
def process_probe(self, client):
|
||||||
client.send(restResponse.getResponse(ogResponses.OK))
|
jsonResp = jsonResponse()
|
||||||
|
jsonResp.addElement('status', 'OPG')
|
||||||
|
client.send(restResponse.getResponse(ogResponses.OK, jsonResp))
|
||||||
|
|
||||||
def process_shellrun(self, client, httpparser):
|
def process_shellrun(self, client, httpparser):
|
||||||
if httpparser.getCMD() == None:
|
if httpparser.getCMD() == None:
|
||||||
|
|
Loading…
Reference in New Issue