Skip to main content

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

Hello,
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 .
Please help.
Thank you

On Sat, Jul 28, 2018, 3:55 AM Jos Vos <jos@xxxxxx> wrote:
On Fri, Jul 27, 2018 at 09:26:55PM +0530, saurabh singh wrote:

> I want to use asyncio's loop instead of loop of paho for scaling.
> Is hbmqtt suitable.

I did not want to use hbmqtt, as I want to stay mainstream and not
using an alternative implementation.

You can use asyncio's loop, you have to to use add_reader() and
add_writer for the MQTT socket and in the callback call the
appropriate MQTT actions.

--
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Office: +31 20 6938364
--    Amsterdam, The Netherlands        |   Mobile: +31 6 26216181
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

Back to the top