u9n / dlms-cosem

A Python library for DLMS/COSEM
Other
80 stars 41 forks source link

ProfileGeneric class reset and capture methods #40

Closed bavitus92 closed 3 years ago

bavitus92 commented 3 years ago

Hello

Reset and capture methods of ProfileGeneric class are void. It it possible to implement them? Regards

Krolken commented 3 years ago

Hi

I'm working on a better API to interact with a meter over the interfaces. But there is quite alot of ground work to be done first.

But there should't be any limitation to run the action service on a method.

Ex:


client.action(
        method=cosem.CosemMethod(
            interface=enumerations.CosemInterface.PROFILE_GENERIC,
            instance=cosem.Obis(a=0, b=5, c=25, d=9, e=0, f=255),
            method=1,
        ),
        data=b"\x12\x00\x00",
    )
Krolken commented 3 years ago

I'm gonna close this since it is a feature far in the future. As of now you need to use the lower level actions.