Having a few issues with socket support in Lua. I've been using sockets to connect to and control my (Wi-Fi) kettle for a few months by using on/off scripts and these have been working fine. I recently discovered the new multi-state switches which are great because it means I can swap the kettle control to (Off | 65 | 80 | 95 | 100 ) instead of just on/off. I've moved over the code from the on/off scripts but now it doesn't work any more.

I believe the previous on/off scripts were using external Lua on my server (Ubuntu) rather than Domoticz' internal Lua. I've been searching the forums for similar issues and found a couple of threads suggesting people download/copy various socket files but that hasn't worked. All the instructions seemed to be for RPi and while I've progressed from 'missing socket.core' I've now got 'Wrong ELFCLASS' which I believe is because I've used the wrong (32/64 bit) files.
Anyone have any ideas / advice for getting sockets working internally via Domoticz Lua - or should I scrap that and just have internal Lua scripts call external lua scripts (is that even possible?)
Appreciate any ideas you've got!
