Skip to content

MQTT Publish send timeout in Codesys V3.5.21 #80

@teejc

Description

@teejc

Hi,

Thanks for creating this wonderful MQTT library for Codesys.

Currently I'm testing out the TestMQTTGithubWindowsWithoutTLS project and facing the problem with publishing data. I'm using your MQTT library version 1.2.0.7 and latest dependencies. I downloaded the program into my Control Win V3 X64 version 3.5.21 to test with a local mosquitto broker.

In the mosquitto verbose mode logging i can see the codesys client is connected to the broker. By my understanding, the program should be publishing the tick string every 2 second. However i'm not seeing the publish message in the mosquitto logging. At the same time, in Codesys i notice the publish FB PayloadString value is constantly changing but sendActive and SendTimeout bits are always true.

I did try publish some random string from MQTTX to the topic "CODESYS-MQTT-BY-SD/State" and i'm able to see the data i send in the StringCallback list, so the subscribe FB should be working.

Could you help look into this?

Thank you.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions