Skip to content

QoS for publishing is not working  #8

@lozuwa

Description

@lozuwa

Hello, I have been using this code to publish messages:

public void publishMessage(String topic, String message) {
final int qos = 2;
byte[] encodedPayload = new byte[0];
try {
encodedPayload = message.getBytes("UTF-8");
MQTTServiceCommand.publish(getActivity(), topic, encodedPayload, qos);
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
}

Nonetheless, when I receive messages with MQTTlens, the qos is still 0 for the sent messages. Is this a problem of the service?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions