added deviceId to wrapper, get IP, POST request to server
This commit is contained in:
parent
c2e130c27c
commit
2ed4bed742
2 changed files with 14 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue