|
TuyaOS
|
wifi interface 更多...


宏定义 | |
| #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
| 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 |
| 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 |
| void tal_wifi_recv_mng_dump_reg | ( | TUYA_DUMP_RECV_MNG_FRAME | cb | ) |
recv mng frame dump reg
| [in] | cb | cb |
| 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_tp | mng type |
| [in] | cb | callback |
| OPERATE_RET tal_wifi_recv_mng_frame_unreg | ( | WIFI_REV_MGNT_CB | cb | ) |
unregister wifi recv mng frame cb
| [in] | cb | callback |
| 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 |
| 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 |
| 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 |