wifi interface
更多...
#include "tuya_cloud_types.h"
#include "tkl_wifi.h"
浏览源代码.
|
#define | PROBE_SSID "tuya_smart" |
|
|
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
- 版权所有
- Copyright 2020-2021 Tuya Inc. All Rights Reserved.
◆ TUYA_DUMP_RECV_MNG_FRAME
typedef VOID(* TUYA_DUMP_RECV_MNG_FRAME) (UCHAR_T *buf, UINT_T len) |
recv mng frame dump cb
- 参数
-
[in] | buf | mng buf |
[in] | len | mng 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] | buf | frame buf |
[in] | len | frame len |
- 注解
- called to filter mng recv.
- 返回
- TRUE for needed, FLASE for not needed
◆ tal_wifi_recv_mng_dump_reg()
recv mng frame dump reg
- 参数
-
- 返回
◆ tal_wifi_recv_mng_frame_reg()
register wifi recv mng frame cb
- 参数
-
[in] | mng_tp | mng type |
[in] | cb | callback |
- 注解
- 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
- 参数
-
- 注解
- 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] | ssid | the beacon ssid |
[in] | chan | the beacon's wifi channel |
[in] | src_mac | the beacon's bssid |
[in] | vsie_data | tuya vsie data to be inserted into beacon |
[in] | vsie_data_len | length 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_buf | data to be sent in tuya vsie |
[in] | in_len | data length to be sent |
[in] | ssid | the ssid of the probe request |
[in] | source | mac address of probe request |
[in] | destination | mac 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_buf | data to be sent in tuya vsie |
[in] | in_len | data length to be sent |
[in] | ssid | the ssid of the probe request |
[in] | source | mac address of probe request |
[in] | destination | mac address of probe request |
- 注解
- send probe request packets.
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h