Hello,
I am currently using the Lua Plugin 1.0 to access some api functions in an easy way (without the need to write a full plugin).

My attempt here is to use an external device (that connects via a serial port) to control parameters inside Teamspeak 3.
I have managed to read and write to the serial device using lua. The modification of client variables is also working (/lua run <module>.<command>).

The problem I am facing right now is, that the program needs to listen on the serial console in a while loop. However I can not simply put a while loop in the lua script, since ts3 will simply freeze and lock up.
Is there a way to create a new thread or something similar to run the loop?

I am open to any suggestions. Thank you for your time!