Closed TrevisGordan closed 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.
_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
ln 23: It Checks if the standard Micropython logging module is available. If not, it will fail silently. This prevents breaking code. Only if the user activates LOGGING - he should be aware that he needs the logging module otherwise he will not see any output (Documentation).
ln 561: I changed the "Ram Free"-message to use the "dprint" function, for logging ability.
as said before, in case you like both additions I have a third pull request combining them.