TuyaOS
宏定义 | 类型定义 | 函数
tal_wifi_mgnt.h 文件参考

wifi interface 更多...

#include "tuya_cloud_types.h"
#include "tkl_wifi.h"
tal_wifi_mgnt.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#define PROBE_SSID   "tuya_smart"
 

类型定义

typedef VOID(* TUYA_DUMP_RECV_MNG_FRAME) (UCHAR_T *buf, UINT_T len)
 recv mng frame dump cb 更多...
 
typedef BOOL_T(* WIFI_REV_MGNT_FILTER) (UCHAR_T *buf, UINT_T len)
 filter wifi recv mng frame cb 更多...
 

函数

void tal_wifi_recv_mng_dump_reg (TUYA_DUMP_RECV_MNG_FRAME cb)
 recv mng frame dump reg 更多...
 
OPERATE_RET tal_wifi_recv_mng_frame_reg (WIFI_REV_MGNT_FILTER filter_cb, WIFI_REV_MGNT_CB cb)
 register wifi recv mng frame cb 更多...
 
OPERATE_RET tal_wifi_recv_mng_frame_unreg (WIFI_REV_MGNT_CB cb)
 unregister wifi recv mng frame cb 更多...
 
OPERATE_RET tal_wifi_send_beacon (UCHAR_T *ssid, UCHAR_T chan, BYTE_T *src_mac, BYTE_T *vsie_data, UINT_T vsie_data_len)
 send wifi beacon packets. 更多...
 
OPERATE_RET tal_wifi_send_probe_request_mgnt (CONST UCHAR_T *in_buf, CONST UINT_T in_len, UCHAR_T *ssid, NW_MAC_S *srcmac, NW_MAC_S *dstmac)
 send wifi management packets probe request. 更多...
 
OPERATE_RET tal_wifi_send_probe_response_mgnt (CONST UCHAR_T *in_buf, CONST UINT_T in_len, UCHAR_T *ssid, NW_MAC_S *srcmac, NW_MAC_S *dstmac)
 send wifi management packets probe response. 更多...
 

详细描述

wifi interface

版本
0.1
日期
2021-01-28

类型定义说明

◆ TUYA_DUMP_RECV_MNG_FRAME

typedef VOID(* TUYA_DUMP_RECV_MNG_FRAME) (UCHAR_T *buf, UINT_T len)

recv mng frame dump cb

参数
[in]bufmng buf
[in]lenmng len
返回

◆ WIFI_REV_MGNT_FILTER

typedef BOOL_T(* WIFI_REV_MGNT_FILTER) (UCHAR_T *buf, UINT_T len)

filter wifi recv mng frame cb

参数
[in]bufframe buf
[in]lenframe len
注解
called to filter mng recv.
返回
TRUE for needed, FLASE for not needed

函数说明

◆ tal_wifi_recv_mng_dump_reg()

void tal_wifi_recv_mng_dump_reg ( TUYA_DUMP_RECV_MNG_FRAME  cb)

recv mng frame dump reg

参数
[in]cbcb
返回

◆ tal_wifi_recv_mng_frame_reg()

OPERATE_RET tal_wifi_recv_mng_frame_reg ( WIFI_REV_MGNT_FILTER  filter_cb,
WIFI_REV_MGNT_CB  cb 
)

register wifi recv mng frame cb

参数
[in]mng_tpmng type
[in]cbcallback
注解
called to register mng recv.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_wifi_recv_mng_frame_unreg()

OPERATE_RET tal_wifi_recv_mng_frame_unreg ( WIFI_REV_MGNT_CB  cb)

unregister wifi recv mng frame cb

参数
[in]cbcallback
注解
called to unregister mng recv.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_wifi_send_beacon()

OPERATE_RET tal_wifi_send_beacon ( UCHAR_T *  ssid,
UCHAR_T  chan,
BYTE_T *  src_mac,
BYTE_T *  vsie_data,
UINT_T  vsie_data_len 
)

send wifi beacon packets.

参数
[in]ssidthe beacon ssid
[in]chanthe beacon's wifi channel
[in]src_macthe beacon's bssid
[in]vsie_datatuya vsie data to be inserted into beacon
[in]vsie_data_lenlength of vsie data
注解
called to send beacon frame.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_wifi_send_probe_request_mgnt()

OPERATE_RET tal_wifi_send_probe_request_mgnt ( CONST UCHAR_T *  in_buf,
CONST UINT_T  in_len,
UCHAR_T *  ssid,
NW_MAC_S *  srcmac,
NW_MAC_S *  dstmac 
)

send wifi management packets probe request.

参数
[in]in_bufdata to be sent in tuya vsie
[in]in_lendata length to be sent
[in]ssidthe ssid of the probe request
[in]sourcemac address of probe request
[in]destinationmac address of probe request
注解
send probe request packets.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_wifi_send_probe_response_mgnt()

OPERATE_RET tal_wifi_send_probe_response_mgnt ( CONST UCHAR_T *  in_buf,
CONST UINT_T  in_len,
UCHAR_T *  ssid,
NW_MAC_S *  srcmac,
NW_MAC_S *  dstmac 
)

send wifi management packets probe response.

参数
[in]in_bufdata to be sent in tuya vsie
[in]in_lendata length to be sent
[in]ssidthe ssid of the probe request
[in]sourcemac address of probe request
[in]destinationmac address of probe request
注解
send probe request packets.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h