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

在bsp/qemu-virt64-aarch64示例中使能umqtt后无法subscribe #8919

Open
kaypton opened this issue May 8, 2024 · 3 comments
Open

在bsp/qemu-virt64-aarch64示例中使能umqtt后无法subscribe #8919

kaypton opened this issue May 8, 2024 · 3 comments

Comments

@kaypton
Copy link

kaypton commented May 8, 2024

rt-thread内核使能了smart,网络使能LwIP,均测试没问题。在online packages里边使能umqtt,然后选择编译示例程序(umqtt_ex_start等)。最后使用未经修改的qemu.sh脚本启动rt-thread。

在msh中键入umqtt_ex_start后rtt成功连接到后端mosquitto(mosquitto经测试配置没问题,freertos的coremqtt可以正常交互),但是当键入umqtt_ex_subscribe topic/test后输出:
[E/umqtt] subscribe recv message timeout! topic: topic/test
从而导致无法正常订阅MQTT主题。

@BernardXiong
Copy link
Member

请在用户态来使用

@kaypton
Copy link
Author

kaypton commented May 8, 2024

请在用户态来使用

其实我需要在内核态使用一个轻量的MQTT,用户态有其他用处。您的意思是umqtt库在启用smart的时候只能在userapp中使用么?
刚刚尝试关闭了smart,然后使用最新的rtt 5.1.0 bsp/qemu-virt64-aarch64进行上述测试仍然遇到相同的问题。

@BernardXiong
Copy link
Member

请在用户态来使用

其实我需要在内核态使用一个轻量的MQTT,用户态有其他用处。您的意思是umqtt库在启用smart的时候只能在userapp中使用么? 刚刚尝试关闭了smart,然后使用最新的rtt 5.1.0 bsp/qemu-virt64-aarch64进行上述测试仍然遇到相同的问题。

注意下工具,是否是libc引起的问题

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