--[[ What this sctript does? - launch ASTM listener; - accepts ASTM message; - collects all good frames in Lua table (good means checksum is confirmed. find more comments in code.); - converts Lua table into JSON object; - does HTTP POST of JSON object to Iguana channels Webserver; What this script requires? - Lua standalone installation, not in Iguana scope. - socket Lua module installed (see Lua documentation for details) - json lua module installed (see Lua documentation for details) - astmutil module (included) - astmlistener module (included) main.lua scripts command line arguments: 1. tcp port to listen on, default is 6557 2. timeout to prevent blocking operation by TCP server, default is 10 msec 3. webserver IP to send to. deafult is 'localhost' 4. webserver port, default is 6544 5. webserver user, default is admin 6. webserver password, default is password 7. webserver path, default is astm Example: > lua main.lua 6559 15 192.168.5.3 6545 admin password astm ]] require ('astmlistener') astmlistener.listen()