/bin/rc.lua:147: bad argument #1 (string expected got table)
doesn't give any pointers to lines of code in my program...
Please help
Computer connected to rolldoor controller from opensecurity and magnetic card reader from the same mod
server connected to computer through relay and also connected (optionally) to same opensecurity components as the computer
each file stored in /etc/rc.d of client and server respectively
controld.lua controld-server.lua
This was the unfortunate side-effect of a mis-type around the 690th line. Where I posted: table.insert(data.activeGroup.group, 1). It should have been table.insert(data.activeGroup.group, l). Goes to show that any mistake can be unforgiving. I will post completed code when I am satisfied with it's operation.
So I've (HEAVILY) modified the SGCX code to now include server database support at the core but I've run into a snag...
The client code (client.zip: ./usr/bin/sgcx.lua) at line 1288 reports: Attempt to index local 'v' a number value.
I have included full source for the server and client in the hope someone will be able to pinpoint my mistake.
sgc-server.lua
sgcx.lua