@dderevjanik/termux-api
Version:
This library allows you to interact with your Android device from Node.js using termux-api
57 lines (56 loc) • 1.32 kB
TypeScript
export interface WifiNetworkInfo {
/**
* The BSSID of the Wi-Fi network.
* @example "9c:9d:7e:45:bf:dc"
*/
bssid: string;
/**
* The frequency of the Wi-Fi network in MHz.
* @example 2462
*/
frequency_mhz: number;
/**
* The IP address assigned to the device.
* @example "192.168.31.27"
*/
ip: string;
/**
* The link speed of the Wi-Fi network in Mbps.
* @example 286
*/
link_speed_mbps: number;
/**
* The MAC address of the device.
* @example "02:00:00:00:00:00"
*/
mac_address: string;
/**
* The network ID of the Wi-Fi network.
* @example 54
*/
network_id: number;
/**
* The RSSI (Received Signal Strength Indicator) of the Wi-Fi network.
* @example -53
*/
rssi: number;
/**
* The SSID (Service Set Identifier) of the Wi-Fi network.
* @example "Prizemie 1"
*/
ssid: string;
/**
* Indicates if the SSID is hidden.
* @example false
*/
ssid_hidden: boolean;
/**
* The supplicant state of the Wi-Fi network.
* @example "COMPLETED"
*/
supplicant_state: string;
}
/**
* Get information about the current wifi connection
*/
export declare function wifiConnectionInfo(): Promise<WifiNetworkInfo>;