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

Setting QoS on the IotMqttPublish function block (IotMqtt_QoS1 vs IotMqtt_QoS0) #34

Open
MaximBozek-M-ECS opened this issue Dec 26, 2024 · 0 comments

Comments

@MaximBozek-M-ECS
Copy link

MaximBozek-M-ECS commented Dec 26, 2024

PublishClient(
      Enable := TRUE,
      IotMqttLink := MQTTClient.IotMqttLink,
      Topic := ADR(topic),
      QoS := IotMqtt_QoS1,
      Buffer := Buffer,
      BufferLength := Buffer_len,
      Retained := FALSE
);

Putting this QoS parameter to IotMqtt_QoS1, what does this actually do in the backend? if this is turned on, does the server send back a response which gets handled in the backend, to which the "Done" boolean is switched? I don't notice any difference when putting it to IotMqtt_QoS0.

Is the "Done" boolean switched based off of this QoS parameter, or should I look at "Info.DeliveriesCompleted"?

I am currently also subscribing on a self-fabricated response from the server, but if this works, I can scrap that part of my code.

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

1 participant