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

Could not receive QOS1 message at my broker debug terminal #263

Open
Manfred-O opened this issue Oct 14, 2024 · 1 comment
Open

Could not receive QOS1 message at my broker debug terminal #263

Manfred-O opened this issue Oct 14, 2024 · 1 comment

Comments

@Manfred-O
Copy link

Hi, for my application i want to have MQTT on QOS1. But have some strange terminal outputs at my broker side. Got "qos":0???
here my broker terminal output --> {"tst":"2024-10-14T11:59:24.523173Z+0000","topic":"info","qos":0,"retain":0,"payloadlen":7,"payload":"hfhgfhj"}

although i do set the QOS1 correctly in my firmware.
message.payload = (void*)msg->payload;
message.payloadlen = msg->payloadlen;
message.qos = QOS1;
message.retained = 0;

Need some help and clarification, thanks in advance.

@crispycookies
Copy link

crispycookies commented Nov 26, 2024

Have you added the appropriate compile definitions?

target_compile_definitions(${TARGET_NAME} PRIVATE MQTTCLIENT_QOS1=1)

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

2 participants