-
Notifications
You must be signed in to change notification settings - Fork 2k
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-mqtt: add package and example #12647
Conversation
Hi, is there a reason why you created the header file in RIOT? I have no experience using the library but based on a quick look on existing ports here I think this should be done there instead under directory named Generally, if you need to write glue code for the library, the *.c files can go to a |
Yes, there is some modifications in the pipe... Helped by @vincent-d I have modified this glue-code. Thanks! |
be12ea5
to
d754679
Compare
d754679
to
0dc0ae8
Compare
Hello, well I worked this PR a little bit but I'm having issues with the example on native build. Even using the tap interface I can't reach a local mosquitto broker server. If someone can help me, would be awesome. I already tested the framework on a private board and it's working fine but wanted to build an example for native. I tried to contact @miri64 but I think she might be on holidays, what it is normal due to this time of the year :). Have great holidays to all of you. |
I had a similar problem when testing #10222 on native. Try one of these:
|
86d402f
to
2eb19e7
Compare
I think that I'm not understanding the tap interface and tap bridge concept... Isn't the tap0 the one that RIOT uses when passing tap0 as parameter? Why are you modifying the ip address of tapbr0? |
@pokgak regarding ifconfig add, I don't know how to use as I don' t use gnrc becayse I need TCP packets. I'm using LWIP |
7fc24f2
to
85dcfba
Compare
I might be wrong, but the way I understand it tapbr0 is a bridge to connect the real network (localhost, eth0, wlan, etc) to the virtual network (tap0, tap1), so we just need to connect this two network together. Link-local IPv6 cannot be routed between two networks, that's why we need a About LWIP TCP, I have never used it myself but If there is |
I usually set the server on linux to listen to any (
I'm not sure about tests but there is the emcute MQTT-SN implementation and example application by @haukepetersen. |
Thanks @pokgak , right now I have not much time to test it but I will do it as soon as I have a gap on my schedule. Have a nice day |
0c5470f
to
5c9f433
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be awesome if this package could be merged one day. I just had a brief look and I think the way the package is built still needs work. I haven't look that much in detail at the networking glue code but it seems quite good at first sight.
20d6cd2
to
525b4f9
Compare
One of my change requests is still not addressed. But it can be squashed directly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is the -
in the identifier. Changing it from pkg_paho-mqtt
to pkg_paho_mqtt
in both files works as expected. For consistency, I would prefer to have a doc.txt
file as for all other packages which documents the package and groups the related files.
It was addressed, I just forgot to resolve the conversation :$ |
Ok, I think we are good now, right? :D I squash?? |
No, it is not addressed. It ist still RIOT/examples/paho-mqtt/Makefile Line 56 in 424e779
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is still not addressed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested it again with ESP8266 and ESP32. Works as expected. I have a last change request but it can squashed directly. Please squash after this last change.
Squash done. What's the last change about? |
@aabadie are you fine with the state of this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Squash done. What's the last change about?
Hm strange, the requested changes were not submitted last time. Anyway, here they are again. You can squash this small change directly.
STACK SIZE updated ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems fine for me
Close to the merge I would like to say thank you very much for all the support, @aabadie @miri64 @gschorcht . Hopefully, if merged, this will be my first open source contribution. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now.
Thank you, for your patience :) |
I hope you enjoyed it and learned new things :) |
No doubts! :) |
Contribution description
This PR adds PAHO-MQTT package and example running on native
Testing procedure
Application in examples/mqtt-paho builds for native board. Follow README in folder.