Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

capacitorjs-plugin-wifi

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitorjs-plugin-wifi

Capacitor JS plugin to scan and connect to wifi

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

capacitor-plugin-wifi

Capacitor JS plugin that work as wrapper of WifiManager of Android

Install

npm install capacitor-plugin-wifi
npx cap sync

API

checkPermission()

checkPermission() => Promise<{ status: string; }>

Returns: Promise<{ status: string; }>


requestPermission()

requestPermission() => void

wifiScan()

wifiScan() => Promise<{ networks: ScanResult[]; error: string | undefined; }>

Returns: Promise<{ networks: ScanResult[]; error: string; }>


getWifiStatus()

getWifiStatus() => Promise<{ status: boolean; }>

Returns: Promise<{ status: boolean; }>


getSupportedBands()

getSupportedBands() => Promise<SupportedBands>

Returns: Promise<SupportedBands>


changeWifiStatus()

changeWifiStatus() => Promise<{ status: boolean; }>

Returns: Promise<{ status: boolean; }>


disconnect()

disconnect() => Promise<{ status: boolean; }>

Returns: Promise<{ status: boolean; }>


getCurrentNetworkConfiguration()

getCurrentNetworkConfiguration() => Promise<Wifi>

Returns: Promise<Wifi>


getDHCPInfo()

getDHCPInfo() => Promise<DhcpInfo>

Returns: Promise<DhcpInfo>


isP2PSupported()

isP2PSupported() => Promise<{ p2p_supported: boolean; }>

Returns: Promise<{ p2p_supported: boolean; }>


Interfaces

ScanResult
PropType
BSSIDstring
SSIDstring
capabilitiesstring
centerFreq0number | null
centerFreq1number | null
frequencynumber
levelnumber
timestampnumber
SupportedBands
PropType
WiFi24boolean
WiFi5boolean
WiFi6boolean
WiFi60boolean
Wifi
PropType
ssidstring
bssidstring
frequencynumber
hiddenboolean
ip_addressnumber
link_speednumber
mac_addressstring
network_idnumber
rssinumber
current_rx_speednumber | null
current_tx_speednumber | null
fqdnstring | null
passpoint_provider_friendly_namestring | null
max_rx_speedstring | null
max_tx_speedstring | null
wifi_standardnumber | null
securitynumber | null
mlo_linksRecord<string, unknown>[] | null
mldstring | null
mlo_idnumber | null
associated_mlo_linksRecord<string, unknown>[] | null
DhcpInfo
PropType
dns1number
dns2number
gatewaynumber
ipAddressnumber
leaseDurationnumber
netmasknumber
serverAddressnumber

Type Aliases

Record

Construct a type with a set of properties K of type T

{ [P in K]: T; }

Check example for more information.

Keywords

FAQs

Package last updated on 02 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc