30.11.2018, 17:30
(29.11.2018, 08:53)admin Wrote: You have disconnect on first publish, remove this code.
Code:123client.ON_PUBLISH = function() client:disconnect() end
Also, try replacing the loop part to log the result:
Code:1234567while true do res, err = client:loop() if not res then log('mqtt error', err) os.sleep(1) end end
Log sends MQTT error now maybe its something wrong with the certificate files??