Skip to content

Commit 8023900

Browse files
committed
feat(wifi): Add vendor ie API description
internal: 45cf72a6
1 parent 854acab commit 8023900

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

include/espressif/esp_wifi.h

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,18 @@ typedef enum {
832832
VND_IE_TYPE_NUM,
833833
} vendor_ie_type;
834834

835+
/**
836+
* @brief Vendor IE received callback.
837+
*
838+
* @param vendor_ie_type type : type of vendor IE.
839+
* @param const uint8 sa[6] : source address of the packet.
840+
* @param uint8 *vendor_ie : pointer of vendor IE.
841+
* @param sint32 rssi : signal strength.
842+
*
843+
* @return null
844+
*/
845+
typedef void (*vendor_ie_recv_cb_t)(vendor_ie_type type, const uint8 sa[6], const uint8 *vnd_ie, sint32 rssi);
846+
835847
/**
836848
* @brief Set Vendor IE of ESP8266.
837849
*
@@ -852,6 +864,25 @@ typedef enum {
852864
*/
853865
bool wifi_set_vnd_ie(bool enable, vendor_ie_type type, uint8_t idx, uint8_t *vnd_ie);
854866

867+
/**
868+
* @brief Register vendor IE received callback.
869+
*
870+
* @param vendor_ie_recv_cb_t cb : callback
871+
*
872+
* @return 0 : succeed
873+
* @return -1 : fail
874+
*/
875+
sint32 wifi_register_vnd_ie_recv_cb(vendor_ie_recv_cb_t cb);
876+
877+
/**
878+
* @brief Unregister vendor IE received callback.
879+
*
880+
* @param null
881+
*
882+
* @return null
883+
*/
884+
void wifi_unregister_vnd_ie_recv_cb(void);
885+
855886
/**
856887
* @}
857888
*/

0 commit comments

Comments
 (0)