Table of Contents |
---|
HTTP example
in order to retrieve data via HTTP, you have to use the predefined XCON module. You can find the XCON module within the Server Item Tree. Here is a screenshot:
...
This LUA code sends an HTTP request every minute.
TCP/IP Example
For using serial ports or TCP/IP or UDP/IP in LUA, we have the XCON module. You can find the XCON module in the server item tree:
...
Follow the same principle for UDP/IP and for RS232 (COM) connections. See also Serial Communication with LUA.
Article applies to the following products:
- NETx BMS Platform
- NETx Multi Protocol Server
- NETx BMS Server 2.0