22.02.2021, 07:24
Looks correct, add logging for each received message in case it does not work:
Code:
mclient.ON_MESSAGE = function(mid, topic, payload)
log(topic, payload)
...
end