Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Mqtt

Hi,

On Sat, Jul 28, 2018 at 07:00:11AM +0530, saurabh singh wrote:

> Sorry i am not able figure out please tell me,
> What add_reader and add_writer does.
> How to use client. socket with them and how to call appropriate callbacks.
> I am new to asyncio and doing basic stuff so far .

These are the most relevant parts of the docs:

asyncio:
https://docs.python.org/3/library/asyncio-eventloop.html#watch-file-descriptors

mqtt:
https://pypi.org/project/paho-mqtt/#external-event-loop-support

Hope this helps,

-- 
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Office: +31 20 6938364
--    Amsterdam, The Netherlands        |   Mobile: +31 6 26216181


Back to the top