0.0.1 • Published 2 years ago

pn_wifi v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

API

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; }>
ParamType
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; }>
ParamType
options{ ssid: string; password?: string; joinOnce?: boolean; }

Returns: Promise<{ ssid: string | null; }>


disconnect()

disconnect() => Promise<void>