JavaScript
{dialog.object}_setSimulatedOnlineStatus Method
Syntax
{dialog.Object}._setSimulatedOnlineStatus(mode)
Arguments
- modestring
The online state to simulate. Can be one of the following values:
- Mode
- Meaning
- 'off'
Online state is "off".
- 'on'
Online state is "on".
- ''
Uses the true online state of the device when you call the {dialog.object}._getOnlineStatus method.
Description
Allows you to simulate offline behavior of you component event when you have a connection.
Example
//set the device to simulate disconnected state {dialog.Object}._setSimulatedOnlineStatus('off'); //set the device to simulate connected state {dialog.Object}._setSimulatedOnlineStatus('on'); //turn of simulation. the ._getOnlineStatus() method will return the true state {dialog.Object}._setSimulatedOnlineStatus('');
See Also