pwitab / iec62056-21

A Python library for IEC62056-21, Local Data Readout of Energy Meters. Former IEC1107
BSD 3-Clause "New" or "Revised" License
65 stars 18 forks source link

Problem with client.read_value #32

Open ProjectGroupScep opened 1 year ago

ProjectGroupScep commented 1 year ago

Hello,

I am trying to connect with my energy meter using your library. When I use standard_redout() I get all the information on one line and they are correct. Can you tell me how can I read only one address for example '1.8.0' , which function to use and how to write the address in it.

I can't find any information in documentation about that and "Example usage:" from iec62056_21.client import Iec6205621Client

client = Iec6205621Client.with_tcp_transport(address=('192.168.0.1', 8000), device_address='12345678', password='00000000') password_challange = client.access_programming_mode() client.send_password('00000000') # Common standard password data_answer = client.read_value('1.8.0')

is incorrect because I can't import data_answer =client.read_value('1.8.0'). I can use only read_single_value, read_response, read_identification.