-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindoorpersontrackerapi.py
26 lines (18 loc) · 1018 Bytes
/
indoorpersontrackerapi.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import serverconfig
class IndoorPersonTrackerAPI:
def __init__(self):
from suds.client import Client
url = 'http://{}:{}/WebServices/iptwebservice?wsdl'.format(serverconfig.IP, serverconfig.PORT)
self.client = Client(url)
def register(self, identifier):
return self.client.service.register(identifier)
def deregister(self, identifier):
self.client.service.deregister(identifier)
def updateDetection(self, identifier):
self.client.service.updateDetection(identifier)
def updateDetectionCustomPFD(self, identifier, probFalseDetection):
self.client.service.updateDetectionCustomPFD(identifier, probFalseDetection)
def updateIdentification(self, identifier, personName):
self.client.service.updateIdentification(identifier, personName)
def updateIdentificationCustomPFD(self, identifier, personName, probFalseDetection):
self.client.service.updateIdentificationCustomPFD(identifier, personName, probFalseDetection)