Programming interface
3.5 Code examples
SIMATIC RTLS4083T
Operating Instructions, 08/2021, C79000-G8976-C646-02
21
"Button Pressed" event message
This event message is sent after the F1 function key has been pressed or released. If you want
to adapt the short/long press functionality, you need to change the parameter involved in the
configuration file, "RTLS_LM_DataExport.ini".
URI
"agilion.wls.epaper.button_pressed"
Parameter
Consists of:
TransponderID, type: UInt64
ButtonID, type: UInt32
ButtonDown, type: UInt32
The following happens when you briefly press the F1 function key:
Value
Description
0
Evaluated as not pressed
OnShortButtonPress = 0
•
Function key briefly pressed > Event parameter: ButtonDown = 0
•
Function key pressed long (> 2 seconds) > Event parameter:
ButtonDown = 1
•
After a short or long press and subsequent heartbeat > Event
parameter: ButtonDown = 0
1
Considered pressed
OnShortButtonPress = 1
•
Function key pressed short or long > Event parameter: ButtonDown = 1
•
After a short or long press and subsequent heartbeat > Event
parameter: ButtonDown = 0
The default value is 1 in the configuration file "RTLS_LM_DataExport.ini".
3.5
Code examples
Code example WAMP connection
{
"wamp": {
"url": "ws://127.0.0.1:12344/",
"realm": "agilion.wls",
"user": "Administrator",
"key":
Contact Siemens Support for the current password.
}
}