GXNet Reading from another Method asides onClientConnected

6 posts / 0 new
Last post
GABZZsoft
GXNet Reading from another Method asides onClientConnected

I am trying to read from another method asides the onClientConnected method.
Kindly advice on how to to go about it. I am able to read from onClientConnected.

ananyagupta

Actually, I want to know about it because now I started .Net learning.

Kurumi
Kurumi's picture

Hi,
I'm sorry, but for some reason, I didn't notest your post before. Can you describe your problem a little bit more?

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

GABZZsoft

I am using the GURUX java library. i use the .NET OnclientConnect method to receive connection and save the socket address in a map. Whenever i read the meter directly from the onClientConnected method it works fine, but when i try to read it upon a button click, it becomes incosistent.. works well atimes..

GABZZsoft

GURUX.Net is it NIO-Non-Blocking Input/Output ?

Kurumi
Kurumi's picture

Hi,

I don't know if your meter wan work like this. When the meter makes the connection it's usually read right away. There is keep alive time after the connection is closed if you don't read anything from the meter. You can try to save socket instance and not close it, but I don't know if this is working or not.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi