This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

MQTT lib references? enable TLS for use with AWS
#20
(29.11.2018, 08:53)admin Wrote: You have disconnect on first publish, remove this code.
Code:
client.ON_PUBLISH = function()
 client:disconnect()
end

Also, try replacing the loop part to log the result:
Code:
while 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??
Reply


Messages In This Thread
RE: MQTT lib references? enable TLS for use with AWS - by juanpalf - 30.11.2018, 17:30

Forum Jump: