Skip to content

Latest commit

 

History

History
235 lines (131 loc) · 6.78 KB

_wifi_events_modules_wifi_events_index_.md

File metadata and controls

235 lines (131 loc) · 6.78 KB

esp32-javascript"wifi-events/modules/wifi-events/index"

Module: "wifi-events/modules/wifi-events/index"

Index

Interfaces

Variables

Functions

Variables

Let wifi

wifi: Esp32JsWifi | undefined = undefined

Defined in wifi-events/modules/wifi-events/index.ts:38

Functions

afterSuspend

afterSuspend(evt: Esp32JsEventloopEvent, collected: function[]): boolean

Defined in wifi-events/modules/wifi-events/index.ts:152

Parameters:

Name Type
evt Esp32JsEventloopEvent
collected function[]

Returns: boolean


connectWifi

connectWifi(ssid: string, password: string, callback: function, bssid?: undefined | string): void

Defined in wifi-events/modules/wifi-events/index.ts:58

Connect to AP with given ssid and password.

Parameters:

ssid: string

The ssid of the wifi network.

password: string

The password of the wifi network.

callback: function

A cb which gets the connect status updates.

▸ (event: Esp32JsWifiEvent, ip: string | undefined): void

Parameters:

Name Type
event Esp32JsWifiEvent
ip string | undefined

Optional bssid: undefined | string

Optional bssid to pin to a specific AP.

Returns: void


convertBssidToArray

convertBssidToArray(bssid: string): [number, number, number, number, number, number] | undefined

Defined in wifi-events/modules/wifi-events/index.ts:117

Converts a bssid string representation in a 6 number array.

Parameters:

Name Type
bssid string

Returns: [number, number, number, number, number, number] | undefined

The bssid as 6 number array.


convertBssidToString

convertBssidToString(bssid: [number, number, number, number, number, number]): string | undefined

Defined in wifi-events/modules/wifi-events/index.ts:100

Converts a 6 number array into a string representation of a BSSID.

Parameters:

Name Type
bssid [number, number, number, number, number, number]

Returns: string | undefined

The bssid as string representation.


convertIPAddress

convertIPAddress(ip: number): string | undefined

Defined in wifi-events/modules/wifi-events/index.ts:130

Convert 32 bit number to ip address string.

Parameters:

Name Type
ip number

Returns: string | undefined

The ip address as string representation.


createSoftAp

createSoftAp(ssid: string, password: string, callback: function): void

Defined in wifi-events/modules/wifi-events/index.ts:79

Create soft AP with given ssid and password.

Parameters:

ssid: string

The ssid of the wifi network.

password: string

The password of the wifi network.

callback: function

A cb which gets the connect status updates.

▸ (event: Esp32JsWifiEvent): void

Parameters:

Name Type
event Esp32JsWifiEvent

Returns: void


getBssid

getBssid(): string | undefined

Defined in wifi-events/modules/wifi-events/index.ts:92

Get the bssid of the current connected wifi AP as formatted as hex string.

Returns: string | undefined

The bssid.


getIPAddress

getIPAddress(): string | undefined

Defined in wifi-events/modules/wifi-events/index.ts:148

Get the ip address.

Returns: string | undefined

The ip address or undefined..


resetWifiStatus

resetWifiStatus(callback: function): Esp32JsWifi

Defined in wifi-events/modules/wifi-events/index.ts:40

Parameters:

callback: function

▸ (event: Esp32JsWifiEvent, ip: string | undefined): void

Parameters:

Name Type
event Esp32JsWifiEvent
ip string | undefined

Returns: Esp32JsWifi