eclipse / paho.mqtt.python

paho.mqtt.python
Other
2.18k stars 724 forks source link

async message_callback_add #630

Closed panla closed 8 months ago

panla commented 2 years ago
client.message_callback_add(topic, callback)

async callback(client, userdata, msg):
    await ...
    pass
how can i use an async func to message_callback_add
MattBrittan commented 8 months ago

I'm going to close this due to it's age and the low level of detail provided. Please feel free to reopen but please describe your requirement in more detail (alternatively, you are likely to get an answer more quickly at stackoverflow but would definitly need more detail there).

Note: This is part of an exercise to clean up old issues so that the project can move forwards. Due to the number of issues being worked through mistakes will be made; please feel free to reopen this issue (or comment) if you believe it's been closed in error.