In some cases the text-oriented style of the XCON branch of the BMS Server's item tree is insufficient. For that reason powerful LUA functions can be used to cover more complex requirements.
Opening the connection
|
This function opens the connection and creates the handle mySerialConnection to access the connection furtheron.
Sending text
|
Sending binary data
|
Receving incoming data
Create a LUA function named <handle-name>_OnReceiveEvent(vData, vSize, vIP, vPort). Identified by its name it will be the event handler and be called every time data is received through that connection.
|
Closing the connection
|
Article applies to the following products:
- NETx BMS Platform
- NETx Multi Protocol Server
- NETx BMS Server 2.0