Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Not Getting Push Data

not getting push data

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By Varun Sharma , 23 June, 2020
Forums
General discussion

Hi

i m receiving data on my tcp server.But when i use the below line
server.attach(e.info)
My Gxnet tcp server stops receiving any incoming data in received event.
I need to keep receiving the data and also server.attach(e.info) to download the data.

is there any alternate way to do this=>>server.attach(e.info)
??

Thank You

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

It's true that you don't receive events anymore if you use attach. The reason is that attached media owns the connection now, not the server. Attached media can listen to received data and then notify the server if you want that functionality. Somethinf like this:

using (GXNet net = server.attach(e.info))
{
net.onReceived += ...
while(true)
{

}
}

BR,

Mikko

Varun Sharma

5 years 11 months ago

Hello

Hello
everything is fine, but now i m not getting any data in onclient disconnect event
GXNet net = server.attach(e.info)
i mean to say that the client disconnect is not shown in
net_onclientdisconnect event

Thank You

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

You need to start to listen to it for the new client.
net.OnDisconnected += ...

BR,
Mikko

Varun Sharma

5 years 11 months ago

In reply to Hi, by Kurumi

That what i am saying.I am

That what i am saying.I am not getting any notification in
net.OnDisconnected += ...
whats the problem. I am getting data in receive event but not in disconnection.

Whenever server.attach line is used there is no notification for disconnect.
Is there any other way to do server.attach()

Varun Sharma

5 years 11 months ago

Hello

Hello
Have you checked my above problem. Can i do this server.attach() manually because if i use this line i am not getting disconnect notifications.
Also i am not able to disconnect that client ever, the data keeps on coming.

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

Client is disconnected when you leave this:
using (GXNet net = server.attach(e.info))
{
}

You can call releaseRequest or disconnectRequest close the connection to the meter, but usually, the meter doesn't reply after this before meter makes a new connection.

BR,
Mikko

Varun Sharma

5 years 11 months ago

Hello

Hello
Can u tell me to do this server.attach() another way or give me the definition of attach method
because i need to disconnect my client manually whenever i want.

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

There is no other way. When you leave server.attach TCP/IP port is closed, but the meter will notes it after TCP/IP inactivity timeout has passed.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin