peterhinch / micropython-mqtt

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

mqtt_as: Added optional logging functionality. #19

Closed TrevisGordan closed 1 week ago

TrevisGordan commented 5 years ago

_Hello Peter, This is the second functionality I added to mqttas. This one is rather a nice gimmick in some peoples eyes id say. But I think it is actually helpful.

Added optional logging functionality. In addition to the DEBUG option which prints to the console, I added Logging ability which prints the statements a Log message. Inovekd with MQTTClient.LOGGING = True

as said before, in case you like both additions I have a third pull request combining them.

peterhinch commented 1 week ago

@TrevisGordan Bob Veringa is currently doing a lot of work on this library to prove the MQTT V5 functionality (which he largely developed). When that is complete I intend to examine whether there is any scope for optimising RAM use, notably to examine whether improvements to MicroPython can usefully be leveraged for this purpose. In particular I intend to review the dprint method.

It might be worth delaying any contributions until after the next release.