# wifi\_hotspot.h ## **Overview** **Related Modules:** [Wifiservice](Wifiservice.md) **Description:** Provides capabilities to enable and disable the hotspot mode, connect to and disconnect from a hotspot, query the hotspot status, and listen for events. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Macros

Macro Name and Value

Description

HOTSPOT_DEFAULT_CHANNEL   6

Defines the default channel of the hotspot mode.

## Functions

Function Name

Description

EnableHotspot (void)

WifiErrorCode 

Enables the hotspot mode.

DisableHotspot (void)

WifiErrorCode 

Disables the hotspot mode.

SetHotspotConfig (const HotspotConfig *config)

WifiErrorCode 

Sets a specified hotspot configuration.

GetHotspotConfig (HotspotConfig *result)

WifiErrorCode 

Obtains a specified hotspot configuration.

IsHotspotActive (void)

int 

Checks whether the hotspot mode is enabled.

GetStationList (StationInfo *result, unsigned int *size)

WifiErrorCode 

Obtains an array of stations connected to this hotspot.

GetSignalLevel (int rssi, int band)

int 

Obtains the signal level indicated by a specified received signal strength indicator (RSSI) and frequency band.