The issue reports inability to use async/await with umqtt.simple (the library is synchronous), and asks whether an async alternative exists. PR #1086 directly implements that async alternative — umqtt.async, built on the same codebase as umqtt.simple with full uasyncio support including an async publish() method. If merged, it would resolve the user's stated problem. Confidence is medium rather than high because: (1) the PR is not merged, so the fix is not yet available; (2) the issue is partly a support/misunderstanding question rather than a pure bug; and (3) it's unclear whether umqtt.async would be the chosen solution or if the maintainers prefer directing users to an external library like micropython-mqtt.
Suggested action
If PR #1086 is merged, close issue #357 as resolved by that PR. If the PR is still open, link it in the issue as the pending resolution. If the PR is rejected, close #357 with guidance to use an external async MQTT library (e.g. peterhinch/micropython-mqtt) and note that umqtt.simple is intentionally synchronous.
The umqtt.simple module is sync.You'd better use peterhinch's uasync mqtt lib.
While you only need subscribe to some topic.
my solution is :
@2niuhe thanks, but using umqtt_async have its own problem : https://forum.micropython.org/viewtopic.php?f=15&t=7144
thanks for your solution but i had problem in publish part not others .