SetNetworkConnection(Connection,Enable)
Supported_os | ||||
---|---|---|---|---|
|
Description
The command gives the ability to set the network connection for a device.
Execute any of the following connection types:
airplane_mode, wifi, mobile_data, bluetooth
Info |
---|
Note: Bluetooth is only supported for Android 5.* and above. |
Parameters
- airplane_mode
- wifi
- mobile_data
- bluetooth
Usage
Code Block | ||
---|---|---|
| ||
client.setDevice("adb:GT-I9505"); client.setNetworkConnection("airplane_mode", true); client.setNetworkConnection("mobile_data", true); client.setNetworkConnection("wifi", true); client.setNetworkConnection("bluetooth", true); |
Code Examples
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
client.setNetworkConnection("airplane_mode", true); |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
client.SetNetworkConnection("airplane_mode", true); |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
client.SetNetworkConnection("airplane_mode", true) Report |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
self.client.setNetworkConnection("airplane_mode", True) |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
$client->setNetworkConnection("airplane_mode", 1); |