Skip to main content

10 docs tagged with "API"

View all tags

Debugging LUA scripts

OGS ships with a debugging helper script (/lualib/libdebug), which is intended to be used with Visual Studio Code and Tom Blinds / lsmoths Second local LUA debuger.

LuaDPApi

LuaDPApi provides an interface to the Microsoft Data Protection API. It implements a thin LUA wrapper interface over the CryptProtectData and CryptUnprotectData API calls.

LuaHID

LuaHID provides an interface to access USB devices over the HID (human input device) protocol. It implements a thin LUA wrapper interface over the cross platform hidapi library (hidapi.dll, see

LuaModbus

LuaModbus provides a wrapper over libModbus (see libmodbus (github.com), LGPL-2.1) to access Modbus-TCP/UDP-Devices from LUA. In addition to wrapping the libModbus library, LuaModbus also adds a background thread to cyclically read/write a set of registers and automatically reconnect the connection. Using this thread, after the connection is (re)established, a register can automatically be set to a given value (e.g. for setting a "startup" bit as seen in the Rexroth/Phoenix Contact I/O modules).

LuaNet

LuaNet provides simple to use functions for REST/OpenAPI calls using http and https protocols. Compared to luasocket and luassl, it uses the the Windows infrastructure and therefore correctly works with system proxies. Feature-wise it is not as flexible as luasocket/luassl at the moment (e.g. no direct access to all headers), but it is good enough for OAuth and SAP endpoints (like the SAP Digital Manufacturing Cloud).

LuaOSTools

LuaOSTools provides an interface to various Windows specific APIs. It implements a thin LUA wrapper interface over the Win32 API calls.