Send OPG (opengnsys) status when a probe command is received

more_events
Alvaro Neira Ayuso 2020-01-14 17:53:43 +01:00 committed by Alvaro Neira Ayuso
parent 38b57c4ae4
commit 336b02371d
1 changed files with 3 additions and 1 deletions

View File

@ -178,7 +178,9 @@ class ogRest():
threading.Thread(target=ogThread.poweroff).start()
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):
if httpparser.getCMD() == None: