Im using the lattest code on github. I dont want to read the whole association view, because i already know the OBIS i need. Im trying to reuse the main.py to read single OBIS this way,
val = read("1.1.91.7.0.255", 2)
But the method fail, i get error
'str' object has no attribute 'name'.
How i define the requiered OBIS like a class or object, that allow the read method works ?
The purpose of this is create a custom script that reads periodically a meter, without lose time downloading Association view.
Hi,
Hi,
You need to know object type and OBIS code to read it.
You can do it something like this:
clock1 = GXDLMSClock("0.0.1.0.0.255")
val = read("1.1.91.7.0.255", 2)
//Access 2th attribute that is date and time.
print(clock1.time)
BR,
Mikko
Thank you for your quick
Thank you for your quick answer. I going to test and write you back.