lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,

I'm writting a bridge from incoming MQTT messages (using paho.mqtt library) to Postgresql database insertion using pgmoon.

As this tool will be only even driven and as all the processing will be done in the MQTT callback, my tool will have nothing to do in its main loop.

Which is the best way the handle this infinite "do nothing" ? The target system is Linux so I can obviously use POSIX stuffs.

Thanks

Laurent