hi Mikko,
I see that in DLMS Server code whenever the client sends data onReceived function is called, in my case client will send data until display is ON, so till then rx, tx is working fine, then later i am closing the program from the stop operation in Intellij instead I want to close server, so i wrote close(); function inside onreceived() function, but sevrer got closed after the first RX only, is there a way to stop server after client stops sending data?
The meter must reply for a disconnect message so you can't close it right away. Basically you can wait for a Disconnected event and then close the connection after you have sent the reply in the OnReceived method.
How you are planning to restart the server after it's closed?
Hi,
Hi,
The meter must reply for a disconnect message so you can't close it right away. Basically you can wait for a Disconnected event and then close the connection after you have sent the reply in the OnReceived method.
How you are planning to restart the server after it's closed?
Hi Mikko,
Hi Mikko,
I have UI which sends data to server, but i got the solution to close server and after that i dont want to open it,