Alexander

Results 51 comments of Alexander

Did you try OpenResty - https://openresty.org/ ? It's Lua engine has async sockets and supported in luamqtt with appropriate connector

Anyway, there is a way to provide a new method in luamqtt to start connecting async like described in https://github.com/xHasKx/luamqtt/issues/23#issuecomment-653740404 I'll try to implement it on the next week

Hello, it may be caused by non-standard behavior of require() function in your Corona SDK lua runtime. When executing `local bit = require("mqtt.bit")` from `protocol.lua` it's loading module `mqtt/bit.lua`. Then...

Should be fixed in version 1.4.3-3

inforaudio, in version 1.4.3-3 I've fixed the possible module loading loop, but you still need to be installed module [LuaBitOp](http://bitop.luajit.org/) as you are using Lua v5.1 That's clearly listed in...

If I get it right, Corona SDK has its own module to wrap raw socket into SSL connection - the `require('plugin_luasec_ssl')` according this: https://github.com/coronalabs/plugins-sample-openssl/blob/master/luasec/main.lua#L54 And my luamqtt module has ability...

inforaudio, That's because of reading and sending to socket is a blocking operation by default. There is a 2 possible solutions here - running luamqtt receive/send loop in separate OS...

inforaudio, in last version 1.4.6 you may specify correct ssl module name for your Corona SDK environment like this: ``` local client = mqtt.client{ uri = ... ssl = true,...

inforaudio, according your last issue with blocking - you need to test something like this: 1. set socket to non-blocking mode afther that line: https://github.com/xHasKx/luamqtt/blob/master/mqtt/luasocket_ssl.lua#L33 ``` conn.sock:settimeout(0) ``` 2. start...

Try to add `client.connection.sock:settimeout(0)` just after subscription