-
Notifications
You must be signed in to change notification settings - Fork 873
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
Paho client doesn't support custom headers for MQTT connection over WebSockets #502
Comments
Actually I did this changes in my forked repository - vit21ik@7df2eaa I could create merge request to develop branch. |
Thanks for the pull request, once we merge it would you mind if I ported your changes over to our new MQTTv5 client? |
Eclipse Smarthome would use this as well. A near term release including this could help our current mqtt ambitions. |
Fixes eclipse#502 Signed-off-by: David Graeff <david.graeff@web.de> Also-by: Vitalii <vitalii.vlasiuk@temy.co> Signed-off-by: David Graeff <david.graeff@web.de>
Fixes eclipse#502 Signed-off-by: David Graeff <david.graeff@web.de> Also-by: Vitalii <vitalii.vlasiuk@temy.co> Signed-off-by: David Graeff <david.graeff@web.de>
Fixes eclipse#502 Also-by: Vitalii <vitalii.vlasiuk@temy.co> Signed-off-by: David Graeff <david.graeff@web.de>
Added custom headers to mqtt v5 |
Can be closed, can't it? |
@jpwsutton Is there a way to consume these changes via gradle? |
How do I use this feature? I used the latest dependency in maven- |
You can build the jar file from the develop branch as mentioned here and add it to your classpath. These changes will be available as part of 1.3.0 which is overdue. |
It is now available in version 1.2.1 and you implement it like so:
|
How can we retrieve the headers on the subscriber side? |
When you need connection to MQTT broker using WebSockets, paho client sets default headers:
In some cases required send custom headers, for example if you wanted to connect to AWS Iot broker.
https://docs.aws.amazon.com/iot/latest/developerguide/custom-auth.html
It would be great add custom headers support to WebSocket handshake request.
If this is a bug regarding the Android Service, please raise the bug here instead: https://github.com/eclipse/paho.mqtt.android/issues/new
The text was updated successfully, but these errors were encountered: