peterhinch / micropython-mqtt

A 'resilient' asynchronous MQTT driver. Recovers from WiFi and broker outages.
MIT License
549 stars 116 forks source link

Solve the problem of OOP #105

Closed big-vl closed 1 year ago

big-vl commented 1 year ago

The question is why is everything mixed up in the code? Both WiFi and mqtt client.

peterhinch commented 1 year ago

I agree mqtt_as should be rewritten. Ideas for this project are offered here, also an explanation of how the module came into being.

Doing it properly is a big job (not least because of the resilience testing), and it's a moot point whether it would still fit on an ESP8266. Feel free to take it on.