jiejieTop / mqttclient

A high-performance, high-stability, cross-platform MQTT client, developed based on the socket API, can be used on embedded devices (FreeRTOS / LiteOS / RT-Thread / TencentOS tiny), Linux, Windows, Mac, with a very concise The API interface realizes the quality of service of QOS2 with very few resources, and seamlessly connects the mbedtls encryption library.
Apache License 2.0
694 stars 255 forks source link

怎么调用mqtt_subscribe使用同一个连接订阅多个主题,应该怎么调整相关代码,调整代码的思路是什么 #92

Closed Zqq19930717 closed 10 months ago

Zqq19930717 commented 10 months ago

ret = mqtt_subscribe(g_mqttClient, g_mqttTopicSub, QOS2, auto_test_mqtt_msg_handle); 目前g_mqttClient客户端可以正常订阅一个主题,想要再额外订阅一个主题,应该怎么调整相关代码,有参考思路或者demo code吗?