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

MQTT bridge send qos 0 message, If I send message to qos 1 from another broker. #2694

Closed
Bhautik0110 opened this issue Nov 24, 2022 · 2 comments

Comments

@Bhautik0110
Copy link

Bhautik0110 commented Nov 24, 2022

Issue

I have created the bridge between AWS IoT, and Mosquitto. From AWS IoT, I send a message using QoS level 1, Bridge receives the message and sends a message to another client connected to mosquitto. Mosquitto receives the message as expected q1 level. But it sends the message to the subscriber using q0 level.

Logs

mosquitto-mosquitto1-1  | 1669293603: Received PUBLISH from local.mosquittobridge (d0, q1, r0, m1, 'general/demo/shadow/update', ... (48 bytes)) # Received q0
mosquitto-mosquitto1-1  | 1669293603: Sending PUBLISH to 1 (d0, q0, r0, m0, 'general/demo/shadow/update', ... (48 bytes)) # Why QoS 0?
mosquitto-mosquitto1-1  | 1669293603: Sending PUBACK to local.mosquittobridge (m1, rc0)
mosquitto-mosquitto1-1  | 1669293603: Received PUBLISH from local.mosquittobridge (d0, q1, r0, m1, 'general/demo/shadow/update/accepted', ... (134 bytes))
mosquitto-mosquitto1-1  | 1669293603: Sending PUBACK to local.mosquittobridge (m1, rc0)
mosquitto-mosquitto1-1  | 1669293603: Received PUBLISH from local.mosquittobridge (d0, q1, r0, m1, 'general/demo/shadow/update/documents', ... (815 bytes))
mosquitto-mosquitto1-1  | 1669293603: Sending PUBACK to local.mosquittobridge (m1, rc0)

Miscellaneous

Deployment method: Docker
Version: 2.0.15

@Bhautik0110 Bhautik0110 changed the title MQTT Bridge connection send qos 0 message, If I send message to qos 1 from broker. MQTT bridge send qos 0 message, If I send message to qos 1 from another broker. Nov 25, 2022
@NorbertHeusser
Copy link
Contributor

Just one question about it (as it's not visible in your log):
What is the QOS-Level of the subscribtion ?

The subscription needs to have a QOS >= 1 to forward the messages with qos=1.

@ralight
Copy link
Contributor

ralight commented Apr 7, 2023

Closing this because it looks like the question is answered, if not please reopen and provide more information.

@ralight ralight closed this as completed Apr 7, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants