rasp-blefi
Version:
Experimental project that allow headless configuration of WIFI network on Rasperry PI using BLE.
16 lines (15 loc) • 928 B
TypeScript
export interface WpaNetwork {
networkId: number;
ssid: string;
bssid: string;
flags: string;
}
export declare function executeCmd(...args: (string | number)[]): Promise<string>;
export declare function executeWpa(ifname: string, ...args: (string | number)[]): Promise<string>;
export declare function listNetworks(ifname: string): Promise<WpaNetwork[]>;
export declare function findNetworkBySSID(ifname: string, ssid: string): Promise<WpaNetwork>;
export declare function setNetworkVariable(ifname: string, networkId: number, name: string, value: string): Promise<void>;
export declare function addNetwork(ifname: string): Promise<number>;
export declare function removeNetwork(ifname: string, networkId: number): Promise<string>;
export declare function enableNetwork(ifname: string, networkId: number): Promise<string>;
export declare function getConnectedSSID(ifname: string): Promise<string>;