Post by yannickasselin on MQTT QoS 1 & 2
CODESYS Forge
talk
(Post)
Hello, After some more tests, here is what I found out. It seems we have to increase the uiKeepAlive and tPingInterval parameters. If I increase the uiKeepAlive value to 60s and the tPingInterval to 30s, then if I disconnect the ethernet cable from Codesys and publish some messages to which Codesys subscribes to and then reconnect within 30s, I will get the messages. If I don't reconnect the cable within 30s (ping interval), the client goes in error with "ACKNOWLEDGE_TIMEOUT". When this happens, it will not automatically reconnect after reconnecting the cable. I have to disable and re-enable the client but I will not get the published messages. I need to do more tests because there are a lot of weird things happening when playing with the ping interval and the keep alive. It is not clear to me what does what. I even ended up not receiving messages anymore, even if I disabled and re-enabled the mqtt client. The client did not give any error. The only way I was able to get messages again was by modifying my client ID. After that, if I try to re-use one of the old client IDs, nothing works (publish, subscribe) and I get a TCP_INIT_ERROR and sometimes a TCP_READ_ERROR. I need more explanation/documentation about these weird behaviors. Maybe it is the way I use it, maybe it is related to the broker (I am using Mosquitto with default parameters). When using a Node-Red client, everything works perfectly. I am trying to achieve the same behavior with Codesys but it seems impossible so far.
Last updated: 2024-10-30
Raspberry pi 3 and runtime 4.9.0.0
CODESYS Forge
talk
(Thread)
Raspberry pi 3 and runtime 4.9.0.0
Last updated: 2023-09-23
Pointers and online change
CODESYS Forge
talk
(Thread)
Pointers and online change
Last updated: 2010-12-13
Runtime User Managment and web-visu
CODESYS Forge
talk
(Thread)
Runtime User Managment and web-visu
Last updated: 2018-11-05
Codesys V3 and Enron Modbus
CODESYS Forge
talk
(Thread)
Codesys V3 and Enron Modbus
Last updated: 2022-11-09
Library download server and library update
CODESYS Forge
talk
(Thread)
Library download server and library update
Last updated: 2021-09-14
Raspberry PI2 and relay board
CODESYS Forge
talk
(Thread)
Raspberry PI2 and relay board
Last updated: 2015-12-06
CanOpen Manager and RawCan simultaneously?
CODESYS Forge
talk
(Thread)
CanOpen Manager and RawCan simultaneously?
Last updated: 2017-11-08
Read and Write variables through Visualization
CODESYS Forge
talk
(Thread)
Read and Write variables through Visualization
Last updated: 2017-05-18
OPCGatewayClient and csv file
CODESYS Forge
talk
(Thread)
OPCGatewayClient and csv file
Last updated: 2007-08-31
Network Variables and Device Change
CODESYS Forge
talk
(Thread)
Network Variables and Device Change
Last updated: 2021-09-24
Table and Dynamic Text property
CODESYS Forge
talk
(Thread)
Table and Dynamic Text property
Last updated: 2019-04-24
Codesys and SMS in RPi
CODESYS Forge
talk
(Thread)
Codesys and SMS in RPi
Last updated: 2023-09-29
Data storage and Export in Codesys
CODESYS Forge
talk
(Thread)
Data storage and Export in Codesys
Last updated: 2023-10-29
Mapping GPIO and adding GPIO configurations
CODESYS Forge
talk
(Thread)
Mapping GPIO and adding GPIO configurations
Last updated: 2023-11-16
Code Coverage and Test Manager
CODESYS Forge
talk
(Thread)
Code Coverage and Test Manager
Last updated: 2024-07-11
Code Coverage and Test Manager
CODESYS Forge
talk
(Thread)
Code Coverage and Test Manager
Last updated: 2024-07-11
Wago PLC Crashing and Cant Reconnect
CODESYS Forge
talk
(Thread)
Wago PLC Crashing and Cant Reconnect
Last updated: 2024-07-30
CODESYS 3.5 Testmanager and Jenkins
CODESYS Forge
talk
(Thread)
CODESYS 3.5 Testmanager and Jenkins
Last updated: 2024-08-07
CSV file and string manipulation.
CODESYS Forge
talk
(Thread)
CSV file and string manipulation.
Last updated: 2024-09-27
Shared memory between Python and Codesys
CODESYS Forge
talk
(Thread)
Shared memory between Python and Codesys
Last updated: 2024-10-04
Eoe issues with Windows and Linux
CODESYS Forge
talk
(Thread)
Eoe issues with Windows and Linux
Last updated: 2024-10-07
Codesys SP20 and professional developer edition
CODESYS Forge
talk
(Thread)
Codesys SP20 and professional developer edition
Last updated: 2024-11-15
Virtual and hardwired Keyboard together
CODESYS Forge
talk
(Thread)
Virtual and hardwired Keyboard together
Last updated: 2024-12-10
Beckhoff AS1060 and EL7041 configuration
CODESYS Forge
talk
(Thread)
Beckhoff AS1060 and EL7041 configuration
Last updated: 2024-12-23
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND or OR.