capacitor-jd-wifi
v0.0.13
Published
Wifi Functions
Downloads
9
Readme
capacitor-jd-wifi
Wifi Functions
Install
npm install capacitor-jd-wifi
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
getIP()
getIP() => Promise<{ ip: string | null; }>
Returns: Promise<{ ip: string | null; }>
getSSID()
getSSID() => Promise<{ ssid: string | null; }>
Returns: Promise<{ ssid: string | null; }>
connect(...)
connect(options: { ssid: string; password?: string; joinOnce?: boolean; isHiddenSsid?: boolean; }) => Promise<{ ssid: string | null; }>
| Param | Type |
| ------------- | --------------------------------------------------------------------------------------------- |
| options
| { ssid: string; password?: string; joinOnce?: boolean; isHiddenSsid?: boolean; } |
Returns: Promise<{ ssid: string | null; }>
connectPrefix(...)
connectPrefix(options: { ssid: string; password?: string; joinOnce?: boolean; }) => Promise<{ ssid: string | null; }>
| Param | Type |
| ------------- | --------------------------------------------------------------------- |
| options
| { ssid: string; password?: string; joinOnce?: boolean; } |
Returns: Promise<{ ssid: string | null; }>
disconnect()
disconnect() => Promise<void>
scan()
scan() => Promise<{ startScanSuccess: boolean; scanSuccess: boolean; scanResult: any; }>
Returns: Promise<{ startScanSuccess: boolean; scanSuccess: boolean; scanResult: any; }>