MCSDevice
Last updated
Last updated
The MCSDevice class creates device that can connect to specified MCS server. Also, send and receive data from the specified test device on MCS. Know more about MCS.
MCSDevice()
Creates a device that can connect to MCS server.
Syntax
Parameters
device_id: The ID of the test device you created on MCS.
device_key: The key of the test device you created on MCS.
mcs_server_url: Optional. If it is not provided, it connects to "" by default.
MCS Global: To access MCS Global, please browse and specify the MCS API Server URL as "".
MCS China: To access MCS in China, please browse and specify the MCS API Server URL as "".
mcs_server_port: Optional. If it is not provided, it connects with port 80 by default.
Returns
device is an instance of the MCSDevice class
addChannel()
connect()
connected()
process()
setDefaultTimeout()
To add a data channel instance to a MCSDevice instance.
Syntax
Parameters
data_channel_instance: an instance of the MCSDataChannel extended classes
Returns
none