wifidirectplugin
v1.3.0
Published
HT-Installer Wifi Direct Plugin
Readme
wifidirectplugin
HT-Installer Wifi Direct Plugin
Install
npm install wifidirectplugin
npx cap syncAPI
echo(...)scanWifiPeers(...)connectToDevice(...)getGroupOwnerAddress()getNetworkBand()disconnect()- Interfaces
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
scanWifiPeers(...)
scanWifiPeers(options: { deviceName?: string; }) => Promise<{ devices: WifiP2pDevice[]; }>| Param | Type |
| ------------- | ------------------------------------- |
| options | { deviceName?: string; } |
Returns: Promise<{ devices: WifiP2pDevice[]; }>
connectToDevice(...)
connectToDevice(options: { deviceAddress: string; }) => Promise<void>| Param | Type |
| ------------- | --------------------------------------- |
| options | { deviceAddress: string; } |
getGroupOwnerAddress()
getGroupOwnerAddress() => Promise<{ Ip: string; }>Returns: Promise<{ Ip: string; }>
getNetworkBand()
getNetworkBand() => Promise<{ band: number; }>Returns: Promise<{ band: number; }>
disconnect()
disconnect() => Promise<{ disconnected: boolean; }>Returns: Promise<{ disconnected: boolean; }>
Interfaces
WifiP2pDevice
| Prop | Type |
| ------------------- | -------------------- |
| deviceName | string |
| deviceAddress | string |
| status | number |
| connected | boolean |
