|
TuyaOS
|
basic wifi interface 更多...
#include "tuya_cloud_types.h"#include "tal_sleep.h"#include "tuya_hal_wifi.h"
函数 | |
| OPERATE_RET | wf_get_country_code (IN CONST CHAR_T *p_country_code) |
| get the wifi country code. 更多... | |
basic wifi interface
| #define tuya_cpu_get_lp_mode tal_cpu_get_lp_mode |
Get CPU lowpower mode
| #define tuya_cpu_lp_disable tal_cpu_lp_disable |
disable the cpu low power mode.
| #define tuya_cpu_lp_enable tal_cpu_lp_enable |
enable the cpu low power mode.
| #define tuya_wifi_lp_disable tal_wifi_lp_disable |
disable the wifi low power mode.
| #define tuya_wifi_lp_enable tal_wifi_lp_enable |
enable the wifi low power mode.
| #define tuya_wifi_set_lps_dtim tal_wifi_set_lps_dtim |
set the wifi low power dtim.
| #define wf_all_ap_scan tal_wifi_all_ap_scan |
do wifi Scan in all channels.
| [out] | ap_ary | array of ap infomation |
| [out] | num | number of array members |
| #define wf_ap_start tal_wifi_ap_start |
start ap in ap mode.
| [in] | cfg | the configuration of the ap |
| #define wf_ap_stop tal_wifi_ap_stop |
stop ap in ap mode.
| #define wf_assign_ap_scan tal_wifi_assign_ap_scan |
do wifi Scan with specificed SSID.
| [in] | ssid | the ssid to be scaned |
| [out] | ap | ap info of the ssid |
| #define wf_fast_station_connect tal_fast_station_connect |
do fast wifi connect.
| [in] | fast_ap_info | the ap infomation of the ap to be connected |
| #define wf_get_ap_mac tal_wifi_get_ap_mac |
get the ap mac address.
| #define wf_get_connected_ap_info tal_wifi_get_connected_ap_info |
get connect ap info.
| [out] | fast_ap_info | the ap infomation of the connected ap |
| #define wf_get_cur_channel tal_wifi_get_cur_channel |
get wifi channel.
| [out] | chan | pointer that current wifi chan |
| #define wf_get_ip tal_wifi_get_ip |
get wifi ip.
| [in] | wf | station or ap |
| [out] | ip | ip address of station or ap |
| #define wf_get_mac tal_wifi_get_mac |
get wifi mac address.
| [in] | wf | station or ap |
| [out] | mac | mac address of station or ap |
| #define wf_release_ap tal_wifi_release_ap |
free ap memory.
| [in] | ap | the ap info to be free |
| #define wf_rf_calibrated tal_wifi_rf_calibrated |
do wifi calibration
| #define wf_set_country_code tal_wifi_set_country_code |
set the wifi country code.
| #define wf_set_cur_channel tal_wifi_set_cur_channel |
set wifi channel.
| [in] | chan | the chan to be set |
| #define wf_set_mac tal_wifi_set_mac |
set wifi mac address.
| [in] | wf | station or ap |
| [in] | mac | mac address of station or ap |
| #define wf_sniffer_set tal_wifi_sniffer_set |
enable or disable wifi sniffer.
| [in] | en | enable or disable wifi sniffer |
| [in] | cb | the callback function that will get sniffer data |
| #define wf_station_connect tal_wifi_station_connect |
do wifi connect in station mode.
| [in] | ssid | the ssid of the ap to be connected |
| [in] | passwd | the passwd of the ap to be connected |
| #define wf_station_disconnect tal_wifi_station_disconnect |
do wifi disconnect in station mode.
| #define wf_station_get_conn_ap_rssi tal_wifi_station_get_conn_ap_rssi |
get rssi of the connected ap.
| [out] | rssi | the rssi of the connected ap |
| #define wf_station_stat_get tal_wifi_station_get_status |
get wifi station stat.
| [out] | stat | the stat in the station mode,refer to WF_STATION_STAT_E |
| #define wf_wk_mode_get tal_wifi_get_work_mode |
get wifi work mode.
| [out] | mode | current wifi work mode |
| #define wf_wk_mode_set tal_wifi_set_work_mode |
set wifi work mode.
| [in] | mode | wifi work mode,such as station, soft ap... |
| OPERATE_RET wf_get_country_code | ( | IN CONST CHAR_T * | p_country_code | ) |
get the wifi country code.