@falconeta/capacitor-wifi-connect
plugin used for connect the device trhought Wifi also with prefix
Install
npm install @falconeta/capacitor-wifi-connect
npx cap sync
iOS Functions
For functionality, you need to note the following:
-
Connect/Disconnect only works for iOS11+
-
prefixConnect/securePrefixConnect only works for iOS13+
-
Can't run in the simulator so you need to attach an actual device when building with xCode
-
Will ensure 'HotspotConfiguration' and 'Wifi Information' capabilities are added to your xCode project
API
disconnect()
disconnect() => Promise<{ value: boolean; }>
Returns: Promise<{ value: boolean; }>
getSSID()
getSSID() => Promise<{ value: string; }>
Returns: Promise<{ value: string; }>
connect(...)
connect(options: { ssid: string; saveNetwork?: boolean; }) => Promise<{ value: number; }>
Param | Type |
---|
options | { ssid: string; saveNetwork?: boolean; } |
Returns: Promise<{ value: number; }>
prefixConnect(...)
prefixConnect(options: { ssid: string; saveNetwork?: boolean; }) => Promise<{ value: number; }>
Param | Type |
---|
options | { ssid: string; saveNetwork?: boolean; } |
Returns: Promise<{ value: number; }>
secureConnect(...)
secureConnect(options: { ssid: string; password: string; saveNetwork?: boolean; isWep?: boolean; }) => Promise<{ value: number; }>
Param | Type |
---|
options | { ssid: string; password: string; saveNetwork?: boolean; isWep?: boolean; } |
Returns: Promise<{ value: number; }>
securePrefixConnect(...)
securePrefixConnect(options: { ssid: string; password: string; saveNetwork?: boolean; isWep?: boolean; }) => Promise<{ value: number; }>
Param | Type |
---|
options | { ssid: string; password: string; saveNetwork?: boolean; isWep?: boolean; } |
Returns: Promise<{ value: number; }>