Hello. i am trying to write a code to connect and read data from a meter using tcp/ip in C#(VS2017).
I get the sample codes from official site. I downloaded the nugets.
However there are undefined variables, some terms unkown by .dll's. I could not clean the errors
Is there any simplest, shortest sample codes for doing basic job, please?
Hi,
Of course i installed the packages. And at the beginning of the solution i am using:
Gurux, Gurux.DLMS, Gurux.DLMS.Objects, Gurux.Common, Gurux.Net, GXDLMS and more...
DLMS is not a simple protocol and you need all those files to make a connection for your meter.
It's good to know that you have installed those references from Nuget. That is common error.
What kind of errors you are getting? Please, don't post a picture.
- Different from client which is already defined, there's a "Client" which is not defined but used.
- Client, WriteTrace, Media, WaitTime does not exist in the context
- InterfaceType does not contain a definition for 'Wrapper'
- Method group is not a reference type as required by the lock statement.
- Cannot implicitly convert type 'void' to 'Gurux.DLMS.GXReplyData' --> for --> reply = ReadDLMSPacket(it, reply);
- 'GXDLMSClient' does not contain a definition for 'GetObjects' and no accessible extension method 'GetObjects' accepting a first argument of type 'GXDLMSClient' could be found (are you missing a using directive or an assembly reference?
Hi,
Hi,
Have a look at this page, hope this helps: http://www.gurux.fi/Gurux.DLMS.Client
Thanks but that's the page I
Thanks but that's the page I already got the codes from, in which i could not clear errors.
That's why i requested another example. maybe a shorter one only for tcp/ip communication.
Hi,
Hi,
Have you installed gurux.net, gurux.dlms or any other packages that is needed from Nuget?
Hi,
Hi,
Of course i installed the packages. And at the beginning of the solution i am using:
Gurux, Gurux.DLMS, Gurux.DLMS.Objects, Gurux.Common, Gurux.Net, GXDLMS and more...
Hi,
Hi,
DLMS is not a simple protocol and you need all those files to make a connection for your meter.
It's good to know that you have installed those references from Nuget. That is common error.
What kind of errors you are getting? Please, don't post a picture.
BR,
Mikko
- Different from client which
- Different from client which is already defined, there's a "Client" which is not defined but used.
- Client, WriteTrace, Media, WaitTime does not exist in the context
- InterfaceType does not contain a definition for 'Wrapper'
- Method group is not a reference type as required by the lock statement.
- Cannot implicitly convert type 'void' to 'Gurux.DLMS.GXReplyData' --> for --> reply = ReadDLMSPacket(it, reply);
- 'GXDLMSClient' does not contain a definition for 'GetObjects' and no accessible extension method 'GetObjects' accepting a first argument of type 'GXDLMSClient' could be found (are you missing a using directive or an assembly reference?
Hi,
Hi,
I believe that there is something wrong with the references. Have you installed NuGet Package Manager?
https://docs.microsoft.com/en-us/nuget/consume-packages/install-use-pac…
BR,
Mikko