Skip to main content

Objects

All types are exported and can be accessed via:

import {  } from '@react-native-tethering/wifi';

Types

Network

ParamTypeDescription
ssidstringnetwork name
bssidstringrepresents the unique identifier of the network
capabilitiesstringrepresents the capabilities of the network, such as its encryption, key management and security
frequencynumberrepresents the frequency (in megahertz) on which the network operates
levelnumberrepresents the received signal strength indicator (RSSI) of the network
timestampnumberrepresents the time at which the information about the network was obtained

TetheringError

An error class used to handle errors between native and js sides. An example of how to use it

try {
await getWifiNetworks()
} catch(err: any) {
if (err instanceof TetheringError) {
// handle the error
}
}
ParamTypeDescription
codestringyou must use this code to handle every error
messagestringan error message of failure