damian177 - 2023-10-11

Hi,
In my project I have MQTT Client like below:

//mqtt client
mqttClient( xEnable:=connect_to_broker,
            sHostname :=sHostname, uiPort:= uiPort,
            xUseTLS:=FALSE, wsUsername:="", wsPassword:="", 
            xCleanSession:=TRUE, sClientId:='694d45587761676f4b6f6e74656e6572',
            pbWillMessage := ADR(sWillMessage), 
            uiWillMessageSize:=DINT_TO_UINT(Stu.StrLenA(ADR(sWillMessage))), xWillRetain:=FALSE, udiTimeOut:= 10000000);

And ten subscriber's , one of those is below:

//subscribe a topic1
mqttSubscriber_S1(xEnable:=subscribe, eSubscribeQoS := 0,
                pbPayload:=ADR(sSubscribeMessage_S1), 
                udiMaxPayloadSize :=SIZEOF(sSubscribeMessage_S1), 
                mqttClient:=mqttClient, 
                wsTopicFilter:=wsSubcribeTopic_S1);

TerminateString(ADR(sSubscribeMessage_S1), mqttSubscriber_S1.udiPayloadSize); 

After connected to broker I set subscribe to TRUE in alls subscribers and my mqttclient recive error : ACKNOWLEDGE_TIMEOUT what can be wrong ?