added deviceId to wrapper, get IP, POST request to server

This commit is contained in:
kflux 2020-09-18 16:04:35 +02:00
parent c2e130c27c
commit 2ed4bed742
2 changed files with 14 additions and 1 deletions

View file

@ -25,6 +25,13 @@ class QngWrapperWindows:
import win32com.client
self._qng = win32com.client.Dispatch("QWQNG.QNG")
def deviceId(self):
try:
return self._qng.DeviceId
except:
self._qng.Reset()
return self._qng.DeviceId
def randint32(self):
try:
return self._qng.RandInt32