#7 Reading multiple items which they are tuples

open
nobody
None
5
2013-01-17
2013-01-17
Manuel Garcia
No

I think that I find out a bug. If you read a tag (reading a single item) which it's a tuple, response is OK. However, if you read some tags (reading multiple items) which they are tuples, response is incorrect.

Example:

import OpenOPC

opc = OpenOPC.open_client('192.168.1.2')
opc.connect('Matrikon.OPC.Universal.1')

opc.read('tag_1')
((0, 6489, 279, 8211), 'Good', '01/17/13 19:59:00')

opc.read('tag_2'')
((20480, 18188), 'Good', '01/17/13 19:59:20')

opc.read(('tag_1', 'tag_2'))
[('tag_1', (6144, 8192, 279, 8211), 'Good', '01/17/13 20:00:19'), ('tag_2', (6144, 8192), 'Good', '01/17/13 20:00:19')]

It seems like that tag_2 copy the value that the tag_1.

Can you help me please? Thank you

Discussion