Mobile Hotspot Manager for Win10
Project description
Example:
from xzqhotspot import manager
m = manager()
# start mobile hotspot
# returns TetheringOperationStatus, for details, refer to the table below
result=m.start_hotspot()
# stop mobile hotspot
# returns TetheringOperationStatus, for details, refer to the table below
result=m.stop_hotspot()
# get current status instantly
# 0 for Unknown, 1 for On, 2 for Off, 3 for Transition between On and Off
s = m.hotspot_status()
# test Internet connectivity
# True for connected, False otherwise
flag = is_internet_available()
# get connected network ssid
ssid = get_wifi_ssid()
# keyword is a part of network adpater name
# in order to identify specific network adpater
disable_network_adapter(keyword)
enable_network_adapter(keyword)
Result | Value | Description |
---|---|---|
BluetoothDeviceOff | 7 | The operation could not begin because Bluetooth or a required Bluetooth device is turned off. |
EntitlementCheckFailure | 5 | The operation did not complete because the account does not currently support tethering operations. |
EntitlementCheckTimeout | 4 | The operation did not complete because the mobile operator could not be contacted to confirm tethering capabilities are provided for this account. |
MobileBroadbandDeviceOff | 2 | The operation could not begin because the mobile broadband device is turned off. |
NetworkLimitedConnectivity | 8 | The operation did not complete because of limited network connectivity. |
OperationInProgress | 6 | The operation is still in progress. |
Success | 0 | The operation completed successfully. |
Unknown | 1 | The status of the operation is unknown. |
WiFiDeviceOff | 3 | The operation could not begin because the Wifi device is turned off. |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xzqhotspot-3.0.5.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for xzqhotspot-3.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5f53d497aea17e134afb106f1a471a6c729421fd46be3d08f4e525a71aae4ec |
|
MD5 | 04775d1d49c1784ccc9bae67da9b0cb1 |
|
BLAKE2b-256 | 35ef1d4555b6cc2286269462ccac419ca167cf9d346d36fcb6f4973b4b0dae0a |