Silk Mobile

Table of Contents (Homepage)

GetConnectedDevices

GetConnectedDevices()

images/images/os-icons/os_ios_150x150.png

images/images/os-icons/os_android_150x150.png

images/images/os-icons/os_windows_150x150.png

images/images/os-icons/os_blackberry_150x150.png

Description

This command will return a string of all devices currently available in the device list (on ready mode).

Parameters

No parameters.

Note: Command will not return name of devices in offline mode.

Usage

Check the status of available devices on the device list.

Step 1: Add GetConnectedDevices() after initially setting a device.

images/download/attachments/3309858/19.jpg

Step 2: When script will run, we will get the string of all connected devices available on the devices list that are on ready mode.

images/download/attachments/3309858/20.jpg

Code Examples

Java Example
String str1 = client.getConnectedDevices();
C# Example
string str1 = client.GetConnectedDevices();
VBScript Example
str0 = client.GetConnectedDevices ( )
Report
Python Example
var1 = self.client.getConnectedDevices()
Perl Example
my $str1 = $client->getConnectedDevices();