diff --git a/en/application-dev/reference/apis/js-apis-wifi.md b/en/application-dev/reference/apis/js-apis-wifi.md
index 7f5b41145c5831f3ecd0014687a52366b598f9d4..13014cfed8a6cc95d124535c89b399b12348395f 100644
--- a/en/application-dev/reference/apis/js-apis-wifi.md
+++ b/en/application-dev/reference/apis/js-apis-wifi.md
@@ -25,9 +25,9 @@ Enables WLAN.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.disableWifi
@@ -44,9 +44,9 @@ Disables WLAN.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.isWifiActive
@@ -61,9 +61,9 @@ Checks whether WLAN is enabled.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if WLAN is enabled; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if WLAN is enabled; returns **false** otherwise.|
## wifi.scan
@@ -78,9 +78,9 @@ Starts a scan for WLAN.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.getScanInfos
@@ -95,9 +95,9 @@ Obtains the scan result. This API uses a promise to return the result.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| Promise< Array<[WifiScanInfo](#wifiscaninfo)> > | Promise used to return the detected hotspots.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | Promise< Array<[WifiScanInfo](#wifiscaninfo)> > | Promise used to return the detected hotspots.|
## wifi.getScanInfos
@@ -112,9 +112,9 @@ Obtains the scan result. This API uses an asynchronous callback to return the re
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| callback | AsyncCallback< Array<[WifiScanInfo](#wifiscaninfo)>> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the detected hotspots. Otherwise, **err** is a non-zero value and **data** is empty.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | callback | AsyncCallback< Array<[WifiScanInfo](#wifiscaninfo)>> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the detected hotspots. Otherwise, **err** is a non-zero value and **data** is empty.|
**Example**
```js
@@ -247,9 +247,9 @@ Obtains the scan result. This API returns the result synchronously.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| Array<[WifiScanInfo](#wifiscaninfo)> | Scan result obtained.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | Array<[WifiScanInfo](#wifiscaninfo)> | Scan result obtained.|
## wifi.addDeviceConfig
@@ -266,15 +266,15 @@ Adds network configuration. This API uses a promise to return the result.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| Promise<number> | Promise used to return the WLAN configuration ID. If **-1** is returned, the operation has failed.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | Promise<number> | Promise used to return the WLAN configuration ID. If **-1** is returned, the operation has failed.|
## WifiDeviceConfig
@@ -412,10 +412,10 @@ Adds network configuration. This API uses an asynchronous callback to return the
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.|
-| callback | AsyncCallback<number> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the network configuration ID. If **data** is **-1**, the operation has failed. If **err** is not **0**, an error has occurred.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.|
+ | callback | AsyncCallback<number> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the network configuration ID. If **data** is **-1**, the operation has failed. If **err** is not **0**, an error has occurred.|
## wifi.addUntrustedConfig7+
@@ -430,15 +430,15 @@ Adds the configuration of an untrusted network. This API uses a promise to retur
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| Promise<boolean> | Promise used to return the result. If the operation is successful, **true** is returned; otherwise, **false** is returned.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | Promise<boolean> | Promise used to return the result. If the operation is successful, **true** is returned; otherwise, **false** is returned.|
## wifi.addUntrustedConfig7+
@@ -453,10 +453,10 @@ Adds the configuration of an untrusted network. This API uses an asynchronous ca
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.|
-| callback | AsyncCallback<boolean> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is **true**. If the operation fails, **data** is **false**. If **err** is not **0**, an error has occurred.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.|
+ | callback | AsyncCallback<boolean> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is **true**. If the operation fails, **data** is **false**. If **err** is not **0**, an error has occurred.|
## wifi.removeUntrustedConfig7+
@@ -471,15 +471,15 @@ Removes the configuration of an untrusted network. This API uses a promise to re
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
| config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to remove.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| Promise<boolean> | Promise used to return the result. If the operation is successful, **true** is returned; otherwise, **false** is returned.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | Promise<boolean> | Promise used to return the result. If the operation is successful, **true** is returned; otherwise, **false** is returned.|
## wifi.removeUntrustedConfig7+
@@ -494,10 +494,10 @@ Removes the configuration of an untrusted network. This API uses an asynchronous
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
| config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to remove.|
-| callback | AsyncCallback<boolean> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is **true**. If the operation fails, **data** is **false**. If **err** is not **0**, an error has occurred.|
+ | callback | AsyncCallback<boolean> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is **true**. If the operation fails, **data** is **false**. If **err** is not **0**, an error has occurred.|
## wifi.addCandidateConfig9+
@@ -512,15 +512,15 @@ Adds the configuration of a candidate network. This API uses a promise to return
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| Promise<number> | Promise used to return the network configuration ID.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | Promise<number> | Promise used to return the network configuration ID.|
## wifi.addCandidateConfig9+
@@ -535,10 +535,10 @@ Adds the configuration of a candidate network. This API uses an asynchronous cal
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.|
-| callback | AsyncCallback<number> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the network configuration ID. If **data** is **-1**, the operation has failed. If **err** is not **0**, an error has occurred.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.|
+ | callback | AsyncCallback<number> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the network configuration ID. If **data** is **-1**, the operation has failed. If **err** is not **0**, an error has occurred.|
## wifi.removeCandidateConfig9+
@@ -553,15 +553,15 @@ Removes the configuration of a candidate network. This API uses a promise to ret
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
| networkId | number | Yes| ID of the network configuration to remove.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| Promise<void> | Promise used to return the result.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | Promise<void> | Promise used to return the result.|
## wifi.removeCandidateConfig9+
@@ -576,8 +576,8 @@ Removes the configuration of a candidate network. This API uses an asynchronous
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
| networkId | number | Yes| ID of the network configuration to remove.|
| callback | AsyncCallback<void> | Yes| Callback invoked to return the result. If the operation is successful, the value of **err** is **0**. If **err** is not **0**, an error has occurred.|
@@ -594,9 +594,9 @@ Obtains candidate network configuration.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| Array<[WifiDeviceConfig](#wifideviceconfig)> | Candidate network configuration obtained.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | Array<[WifiDeviceConfig](#wifideviceconfig)> | Candidate network configuration obtained.|
## wifi.connectToCandidateConfig9+
@@ -611,9 +611,9 @@ Connects to a candidate network.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| networkId | number | Yes| ID of the candidate network configuration.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | networkId | number | Yes| ID of the candidate network configuration.|
## wifi.connectToNetwork
@@ -630,15 +630,15 @@ Connects to the specified network.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| networkId | number | Yes| Network configuration ID.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | networkId | number | Yes| Network configuration ID.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.connectToDevice
@@ -656,15 +656,15 @@ Connects to the specified network.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
| config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.disconnect
@@ -682,9 +682,9 @@ Disconnects the network.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.getSignalLevel
@@ -699,16 +699,16 @@ Obtains the WLAN signal level.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| rssi | number | Yes| RSSI of the hotspot, in dBm.|
-| band | number | Yes| Frequency band of the WLAN AP.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | rssi | number | Yes| RSSI of the hotspot, in dBm.|
+ | band | number | Yes| Frequency band of the WLAN AP.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| number | Signal level obtained. The value range is [0, 4].|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | number | Signal level obtained. The value range is [0, 4].|
## wifi.getLinkedInfo
@@ -723,9 +723,9 @@ Obtains WLAN connection information. This API uses a promise to return the resul
**Return value**
-| Type| Description|
-| -------- | -------- |
-| Promise<[WifiLinkedInfo](#wifilinkedinfo)> | Promise used to return the WLAN connection information obtained.|
+ | Type| Description|
+ | -------- | -------- |
+ | Promise<[WifiLinkedInfo](#wifilinkedinfo)> | Promise used to return the WLAN connection information obtained.|
## wifi.getLinkedInfo
@@ -740,9 +740,9 @@ Obtains WLAN connection information. This API uses an asynchronous callback to r
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| callback | AsyncCallback<[WifiLinkedInfo](#wifilinkedinfo)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the WLAN connection information obtained. If **err** is not **0**, an error has occurred.|
+ | Name| Type| Mandatory| Description|
+ | -------- | -------- | -------- | -------- |
+ | callback | AsyncCallback<[WifiLinkedInfo](#wifilinkedinfo)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the WLAN connection information obtained. If **err** is not **0**, an error has occurred.|
**Example**
```js
@@ -844,9 +844,9 @@ Checks whether the WLAN is connected.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the WLAN is connected; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the WLAN is connected; returns **false** otherwise.|
## wifi.getSupportedFeatures7+
@@ -863,9 +863,9 @@ Obtains the features supported by this device.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| number | Feature value. |
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | number | Feature value. |
**Feature IDs**
@@ -896,15 +896,15 @@ Checks whether the device supports the specified WLAN feature.
**Parameters**
-| **Name**| **Type**| Mandatory| **Description**|
-| -------- | -------- | -------- | -------- |
-| featureId | number | Yes| Feature ID.|
+ | **Name**| **Type**| Mandatory| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | featureId | number | Yes| Feature ID.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the feature is supported; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the feature is supported; returns **false** otherwise.|
## wifi.getDeviceMacAddress7+
@@ -921,9 +921,9 @@ Obtains the device MAC address.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| string[] | MAC address obtained.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | string[] | MAC address obtained.|
## wifi.getIpInfo7+
@@ -938,9 +938,9 @@ Obtains IP information.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| [IpInfo](#ipinfo7) | IP information obtained.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | [IpInfo](#ipinfo7) | IP information obtained.|
## IpInfo7+
@@ -972,9 +972,9 @@ Obtains the country code.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| string | Country code obtained.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | string | Country code obtained.|
## wifi.reassociate7+
@@ -991,9 +991,9 @@ Re-associates with the network.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.reconnect7+
@@ -1010,9 +1010,9 @@ Reconnects to the network.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.getDeviceConfigs7+
@@ -1029,9 +1029,9 @@ Obtains network configuration.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| Array<[WifiDeviceConfig](#wifideviceconfig)> | Array of network configuration obtained.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | Array<[WifiDeviceConfig](#wifideviceconfig)> | Array of network configuration obtained.|
## wifi.updateNetwork7+
@@ -1048,15 +1048,15 @@ Updates network configuration.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
| config | [WifiDeviceConfig](#wifideviceconfig) | Yes| New WLAN configuration.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| number | ID of the updated network configuration. The value **-1** indicates that the operation has failed.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | number | ID of the updated network configuration. The value **-1** indicates that the operation has failed.|
## wifi.disableNetwork7+
@@ -1073,15 +1073,15 @@ Disables network configuration.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| netId | number | Yes| ID of the network configuration to disable.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | netId | number | Yes| ID of the network configuration to disable.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.removeAllNetwork7+
@@ -1098,9 +1098,9 @@ Removes the configuration of all networks.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.removeDevice7+
@@ -1117,15 +1117,15 @@ Removes the specified network configuration.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
| id | number | Yes| ID of the network configuration to remove.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.enableHotspot7+
@@ -1142,9 +1142,9 @@ Enables this hotspot.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.disableHotspot7+
@@ -1161,9 +1161,9 @@ Disables this hotspot.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.isHotspotDualBandSupported7+
@@ -1180,9 +1180,9 @@ Checks whether the hotspot supports dual band.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the feature is supported; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the feature is supported; returns **false** otherwise.|
## wifi.isHotspotActive7+
@@ -1199,9 +1199,9 @@ Checks whether this hotspot is active.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the hotspot is active; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the hotspot is active; returns **false** otherwise.|
## wifi.setHotspotConfig7+
@@ -1218,15 +1218,15 @@ Sets hotspot configuration.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| config | [HotspotConfig](#hotspotconfig7) | Yes| Hotspot configuration to set.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | config | [HotspotConfig](#hotspotconfig7) | Yes| Hotspot configuration to set.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## HotspotConfig7+
@@ -1260,9 +1260,9 @@ obtains hotspot configuration.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| [HotspotConfig](#hotspotconfig7) | Hotspot configuration obtained.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | [HotspotConfig](#hotspotconfig7) | Hotspot configuration obtained.|
## wifi.getStations7+
@@ -1279,9 +1279,9 @@ Obtains information about the connected stations.
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| Array<[StationInfo](#stationinfo7)> | Connected stations obtained.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | Array<[StationInfo](#stationinfo7)> | Connected stations obtained.|
## StationInfo7+
@@ -1311,9 +1311,9 @@ Obtains P2P link information. This API uses a promise to return the result.
**Return value**
-| Type| Description|
-| -------- | -------- |
-| Promise<[WifiP2pLinkedInfo](#wifip2plinkedinfo8)> | Promise used to return the P2P link information obtained.|
+ | Type| Description|
+ | -------- | -------- |
+ | Promise<[WifiP2pLinkedInfo](#wifip2plinkedinfo8)> | Promise used to return the P2P link information obtained.|
@@ -1354,9 +1354,9 @@ Obtains P2P link information. This API uses an asynchronous callback to return t
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| callback | AsyncCallback<[WifiP2pLinkedInfo](#wifip2plinkedinfo8)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the P2P link information. If **err** is not **0**, an error has occurred.|
+ | Name| Type| Mandatory| Description|
+ | -------- | -------- | -------- | -------- |
+ | callback | AsyncCallback<[WifiP2pLinkedInfo](#wifip2plinkedinfo8)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the P2P link information. If **err** is not **0**, an error has occurred.|
## wifi.getCurrentGroup8+
@@ -1371,9 +1371,9 @@ Obtains the current P2P group information. This API uses a promise to return the
**Return value**
-| Type| Description|
-| -------- | -------- |
-| Promise<[WifiP2pGroupInfo](#wifip2pgroupinfo8)> | Promise used to return the group information obtained.|
+ | Type| Description|
+ | -------- | -------- |
+ | Promise<[WifiP2pGroupInfo](#wifip2pgroupinfo8)> | Promise used to return the group information obtained.|
## wifi.getCurrentGroup8+
@@ -1388,9 +1388,9 @@ Obtains the current P2P group information. This API uses an asynchronous callbac
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| callback | AsyncCallback<[WifiP2pGroupInfo](#wifip2pgroupinfo8)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the group information obtained. If **err** is not **0**, an error has occurred.|
+ | Name| Type| Mandatory| Description|
+ | -------- | -------- | -------- | -------- |
+ | callback | AsyncCallback<[WifiP2pGroupInfo](#wifip2pgroupinfo8)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the group information obtained. If **err** is not **0**, an error has occurred.|
## wifi.getP2pPeerDevices8+
@@ -1405,9 +1405,9 @@ Obtains the peer device list in the P2P connection. This API uses a promise to r
**Return value**
-| Type| Description|
-| -------- | -------- |
-| Promise<[WifiP2pDevice[]](#wifip2pdevice8)> | Promise used to return the peer device list.|
+ | Type| Description|
+ | -------- | -------- |
+ | Promise<[WifiP2pDevice[]](#wifip2pdevice8)> | Promise used to return the peer device list.|
## wifi.getP2pPeerDevices8+
@@ -1422,9 +1422,9 @@ Obtains the peer device list in the P2P connection. This API uses an asynchronou
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| callback | AsyncCallback<[WifiP2pDevice[]](#wifip2pdevice8)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the peer device list obtained. If **err** is not **0**, an error has occurred.|
+ | Name| Type| Mandatory| Description|
+ | -------- | -------- | -------- | -------- |
+ | callback | AsyncCallback<[WifiP2pDevice[]](#wifip2pdevice8)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the peer device list obtained. If **err** is not **0**, an error has occurred.|
## WifiP2pDevice8+
@@ -1469,9 +1469,9 @@ Obtains the local device information in the P2P connection. This API uses a prom
**Return value**
-| Type| Description|
-| -------- | -------- |
-| Promise<[WifiP2pDevice](#wifip2pdevice8)> | Promise used to return the local device information obtained.|
+ | Type| Description|
+ | -------- | -------- |
+ | Promise<[WifiP2pDevice](#wifip2pdevice8)> | Promise used to return the local device information obtained.|
## wifi.getP2pLocalDevice9+
@@ -1486,9 +1486,9 @@ Obtains the local device information in the P2P connection. This API uses an asy
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| callback | AsyncCallback<[WifiP2pDevice](#wifip2pdevice8)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the local device information obtained. If **err** is not **0**, an error has occurred.|
+ | Name| Type| Mandatory| Description|
+ | -------- | -------- | -------- | -------- |
+ | callback | AsyncCallback<[WifiP2pDevice](#wifip2pdevice8)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the local device information obtained. If **err** is not **0**, an error has occurred.|
## wifi.createGroup8+
@@ -1503,15 +1503,15 @@ Creates a P2P group.
**Parameters**
-| **Name**| **Type**| Mandatory| **Description**|
-| -------- | -------- | -------- | -------- |
-| config | [WifiP2PConfig](#wifip2pconfig8) | Yes| Group configuration.|
+ | **Name**| **Type**| Mandatory| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | config | [WifiP2PConfig](#wifip2pconfig8) | Yes| Group configuration.|
**Return value**
-| Type| Description|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | Type| Description|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## WifiP2PConfig8+
@@ -1554,9 +1554,9 @@ Removes this P2P group.
**Return value**
-| Type| Description|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | Type| Description|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.p2pConnect8+
@@ -1572,15 +1572,15 @@ Sets up a P2P connection.
**Parameters**
-| **Name**| **Type**| Mandatory| **Description**|
-| -------- | -------- | -------- | -------- |
-| config | [WifiP2PConfig](#wifip2pconfig8) | Yes| P2P group configuration.|
+ | **Name**| **Type**| Mandatory| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | config | [WifiP2PConfig](#wifip2pconfig8) | Yes| P2P group configuration.|
**Return value**
-| Type| Description|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | Type| Description|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
**Example**
@@ -1662,9 +1662,9 @@ Cancels this P2P connection.
**Return value**
-| Type| Description|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | Type| Description|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.startDiscoverDevices8+
@@ -1679,9 +1679,9 @@ Starts to discover devices.
**Return value**
-| Type| Description|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | Type| Description|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.stopDiscoverDevices8+
@@ -1696,9 +1696,9 @@ Stops discovering devices.
**Return value**
-| Type| Description|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | Type| Description|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.deletePersistentGroup8+
@@ -1716,15 +1716,15 @@ Deletes a persistent group.
**Parameters**
-| **Name**| **Type**| Mandatory| **Description**|
-| -------- | -------- | -------- | -------- |
-| netId | number | Yes| ID of the group to delete.|
+ | **Name**| **Type**| Mandatory| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | netId | number | Yes| ID of the group to delete.|
**Return value**
-| Type| Description|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | Type| Description|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.getP2pGroups9+
@@ -1741,9 +1741,9 @@ Obtains information about all P2P groups. This API uses a promise to return the
**Return value**
-| Type| Description|
-| -------- | -------- |
-| Promise< Array<[WifiP2pGroupInfo](#wifip2pgroupinfo8)> > | Promise used to return the group information obtained.|
+ | Type| Description|
+ | -------- | -------- |
+ | Promise< Array<[WifiP2pGroupInfo](#wifip2pgroupinfo8)> > | Promise used to return the group information obtained.|
## WifiP2pGroupInfo8+
@@ -1779,9 +1779,9 @@ Obtains information about all P2P groups. This API uses an asynchronous callback
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| callback | AsyncCallback< Array<[WifiP2pGroupInfo](#wifip2pgroupinfo8)>> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the group information obtained. If **err** is not **0**, an error has occurred.|
+ | Name| Type| Mandatory| Description|
+ | -------- | -------- | -------- | -------- |
+ | callback | AsyncCallback< Array<[WifiP2pGroupInfo](#wifip2pgroupinfo8)>> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the group information obtained. If **err** is not **0**, an error has occurred.|
## wifi.setDeviceName8+
@@ -1798,15 +1798,15 @@ Sets the device name.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| devName | string | Yes| Device name to set.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | devName | string | Yes| Device name to set.|
**Return value**
-| **Type**| **Description**|
-| -------- | -------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+ | **Type**| **Description**|
+ | -------- | -------- |
+ | boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
## wifi.on('wifiStateChange')7+
@@ -1821,10 +1821,10 @@ Registers the WLAN state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **wifiStateChange**.|
-| callback | Callback<number> | Yes| Callback invoked to return the WLAN state.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **wifiStateChange**.|
+ | callback | Callback<number> | Yes| Callback invoked to return the WLAN state.|
**WLAN states**
@@ -1848,10 +1848,10 @@ Unregisters the WLAN state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **wifiStateChange**.|
-| callback | Callback<number> | No| Callback used to return the WLAN state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **wifiStateChange**.|
+ | callback | Callback<number> | No| Callback used to return the WLAN state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.|
**Example**
```js
@@ -1881,10 +1881,10 @@ Registers the WLAN connection state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **wifiConnectionChange**.|
-| callback | Callback<number> | Yes| Callback invoked to return the WLAN connection state.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **wifiConnectionChange**.|
+ | callback | Callback<number> | Yes| Callback invoked to return the WLAN connection state.|
**WLAN connection states**
@@ -1906,10 +1906,10 @@ Unregisters the WLAN connection state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **wifiConnectionChange**.|
-| callback | Callback<number> | No| Callback used to return the WLAN connection state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **wifiConnectionChange**.|
+ | callback | Callback<number> | No| Callback used to return the WLAN connection state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.|
## wifi.on('wifiScanStateChange')7+
@@ -1924,10 +1924,10 @@ Registers the WLAN scan state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **wifiScanStateChange**.|
-| callback | Callback<number> | Yes| Callback invoked to return the WLAN scan state.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **wifiScanStateChange**.|
+ | callback | Callback<number> | Yes| Callback invoked to return the WLAN scan state.|
**WLAN scan states**
@@ -1967,10 +1967,10 @@ Registers the RSSI change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **wifiRssiChange**.|
-| callback | Callback<number> | Yes| Callback invoked to return the RSSI, in dBm.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **wifiRssiChange**.|
+ | callback | Callback<number> | Yes| Callback invoked to return the RSSI, in dBm.|
## wifi.off('wifiRssiChange')7+
@@ -1985,9 +1985,9 @@ Unregisters the RSSI change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **wifiRssiChange**.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **wifiRssiChange**.|
| callback | Callback<number> | No| Callback used to return the RSSI. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.|
@@ -2003,10 +2003,10 @@ Registers the hotspot state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **hotspotStateChange**.|
-| callback | Callback<number> | Yes| Callback invoked to return the hotspot state.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **hotspotStateChange**.|
+ | callback | Callback<number> | Yes| Callback invoked to return the hotspot state.|
**Hotspot states**
@@ -2030,9 +2030,9 @@ Unregisters the hotspot state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **hotspotStateChange**.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **hotspotStateChange**.|
| callback | Callback<number> | No| Callback used to return the hotspot state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.|
@@ -2048,10 +2048,10 @@ Registers the P2P state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **p2pStateChange**.|
-| callback | Callback<number> | Yes| Callback invoked to return the P2P state.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **p2pStateChange**.|
+ | callback | Callback<number> | Yes| Callback invoked to return the P2P state.|
**P2P states**
@@ -2075,9 +2075,9 @@ Unregisters the P2P state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **p2pStateChange**.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **p2pStateChange**.|
| callback | Callback<number> | No| Callback used to return the P2P state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.|
@@ -2093,10 +2093,10 @@ Registers the P2P connection state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **p2pConnectionChange**.|
-| callback | Callback<[WifiP2pLinkedInfo](#wifip2plinkedinfo8)> | Yes| Callback invoked to return the P2P connection state.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **p2pConnectionChange**.|
+ | callback | Callback<[WifiP2pLinkedInfo](#wifip2plinkedinfo8)> | Yes| Callback invoked to return the P2P connection state.|
## wifi.off('p2pConnectionChange')8+
@@ -2111,9 +2111,9 @@ Unregisters the P2P connection state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **p2pConnectionChange**.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **p2pConnectionChange**.|
| callback | Callback<[WifiP2pLinkedInfo](#wifip2plinkedinfo8)> | No| Callback used to return the P2P connection state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.|
@@ -2129,10 +2129,10 @@ Registers the P2P device state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **p2pDeviceChange**.|
-| callback | Callback<[WifiP2pDevice](#wifip2pdevice8)> | Yes| Callback invoked to return the P2P device state.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **p2pDeviceChange**.|
+ | callback | Callback<[WifiP2pDevice](#wifip2pdevice8)> | Yes| Callback invoked to return the P2P device state.|
## wifi.off('p2pDeviceChange')8+
@@ -2147,9 +2147,9 @@ Unregisters the P2P device state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **p2pDeviceChange**.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **p2pDeviceChange**.|
| callback | Callback<[WifiP2pDevice](#wifip2pdevice8)> | No| Callback used to return the P2P device state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.|
@@ -2165,9 +2165,9 @@ Registers the P2P peer device state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **p2pPeerDeviceChange**.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **p2pPeerDeviceChange**.|
| callback | Callback<[WifiP2pDevice[]](#wifip2pdevice8)> | Yes| Callback invoked to return the P2P peer device state.|
@@ -2183,9 +2183,9 @@ Unregisters the P2P peer device state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **p2pPeerDeviceChange**.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **p2pPeerDeviceChange**.|
| callback | Callback<[WifiP2pDevice[]](#wifip2pdevice8)> | No| Callback used to return the peer device state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.|
@@ -2201,10 +2201,10 @@ Registers the P2P persistent group state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **p2pPersistentGroupChange**.|
-| callback | Callback<void> | Yes| Callback invoked to return the P2P persistent group state.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **p2pPersistentGroupChange**.|
+ | callback | Callback<void> | Yes| Callback invoked to return the P2P persistent group state.|
## wifi.off('p2pPersistentGroupChange')8+
@@ -2219,9 +2219,9 @@ Unregisters the P2P persistent group state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **p2pPersistentGroupChange**.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **p2pPersistentGroupChange**.|
| callback | Callback<void> | No| Callback used to return the P2P persistent group state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.|
@@ -2237,10 +2237,10 @@ Registers the P2P device discovery state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **p2pDiscoveryChange**.|
-| callback | Callback<number> | Yes| Callback invoked to return the P2P device discovery state.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **p2pDiscoveryChange**.|
+ | callback | Callback<number> | Yes| Callback invoked to return the P2P device discovery state.|
**P2P discovered device states**
@@ -2262,7 +2262,7 @@ Unregisters the P2P device discovery state change events.
**Parameters**
-| **Name**| **Type**| **Mandatory**| **Description**|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Event type. The value is **p2pDiscoveryChange**.|
+ | **Name**| **Type**| **Mandatory**| **Description**|
+ | -------- | -------- | -------- | -------- |
+ | type | string | Yes| Event type. The value is **p2pDiscoveryChange**.|
| callback | Callback<number> | No| Callback used to return the P2P device discovery state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.|