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

6 years 1 month 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

6 years 1 month 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

6 years 1 month ago

Hi,

Hi,

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

BR,
Mikko

Varun Sharma

6 years 1 month 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

6 years 1 month 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

6 years 1 month 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

6 years 1 month 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

6 years 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More

Who's new

  • CTKNhZElptjSlOrpkXl
  • YCbccqfLGRMnlCWoJhXP
  • Malcolmactig
  • mhliang
  • Kevinmug
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin