Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The client struggles to connect when downloaded for the second time #9

Open
JarrenGoes opened this issue Feb 1, 2022 · 6 comments
Open

Comments

@JarrenGoes
Copy link

Hy, when I make some changes to my program (not in the mqtt part of the plc program) and download the project then the plc switches between is connected and not connected on random ocasions. After resetting the plc the problem is solved and the client stays connected.

Is this normal? can this be solved?

@martinboers
Copy link
Member

Does the same problem happen if the client is deliberately disconnected from the server, using the Disconnect method, before the new program is downloaded?

If the client simply stops communicating with the server (as might happen if the disconnect method is not called), then perhaps the server will not accept a new connection from the same client until after a timeout period.

@JarrenGoes
Copy link
Author

If i disconnect before uploading it works the next time.
Is there a way to dissconnect when the plc is stopped so i don't need to disconnect manualy?
(maybe a variable that becomes TRUE when stopping the plc)

@SidMarc
Copy link

SidMarc commented Feb 21, 2022

Hello,
I have exactly the same problem with this new version of IIOT Library.
Have you already found any solution for this problem ?

@JarrenGoes
Copy link
Author

Hy,
In my project i integrated a button in the eHMI, that reboots the plc using the PLCNEXTBase library.

@SidMarc
Copy link

SidMarc commented Feb 22, 2022

It would be nice if this problem is solved by changing something in the library.

@martinboers
Copy link
Member

I have passed this request to the developers of the IIoT Library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants