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

QoS for publishing is not working #8

Open
lozuwa opened this issue Nov 6, 2017 · 0 comments
Open

QoS for publishing is not working #8

lozuwa opened this issue Nov 6, 2017 · 0 comments

Comments

@lozuwa
Copy link

lozuwa commented Nov 6, 2017

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?

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