When I tried this:
# get serial number
serialnum=self.sendCommand("<GETSERIAL>>")
serialnum.int=struct.unpack('!1H', serialnum(7))[0]
print "Device Serial Number is: ", serialnum.int
I got this error:
Initializing GMC protocol communication
Found GMC-compatible device, version: GMC-320Re 3.18
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 808, in __bootstrap_inner
self.run()
File "pyradmon.py", line 170, in run
self.initCommunication()
File "pyradmon.py", line 344, in initCommunication
serialnum.int=struct.unpack('!1H', serialnum(7))[0]
NameError: global name 'struct' is not defined
I assume I am using the command wrong, though it looks "ok" from the doc page you gave me...?
Thanks!