getMainPLC was returning a list instead of an object
This commit is contained in:
@@ -189,7 +189,7 @@ def setupTags():
|
||||
def getMainPLC():
|
||||
get_plc_req_data = {'where': {'id': 0}}
|
||||
get_plc_request = requests.get('{}/device'.format(web_address), data=get_plc_req_data)
|
||||
return json.loads(get_plc_request.text)
|
||||
return json.loads(get_plc_request.text)[0]
|
||||
|
||||
|
||||
def readPoints():
|
||||
|
||||
Reference in New Issue
Block a user