pub unsafe extern "C" fn esp_wifi_set_vendor_ie(
    enable: bool,
    type_: u32,
    idx: u32,
    vnd_ie: *const c_void
) -> i32
Expand description

@brief Set 802.11 Vendor-Specific Information Element

@param enable If true, specified IE is enabled. If false, specified IE is removed. @param type Information Element type. Determines the frame type to associate with the IE. @param idx Index to set or clear. Each IE type can be associated with up to two elements (indices 0 & 1). @param vnd_ie Pointer to vendor specific element data. First 6 bytes should be a header with fields matching vendor_ie_data_t. If enable is false, this argument is ignored and can be NULL. Data does not need to remain valid after the function returns.

@return

  • ESP_OK: succeed
  • ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init()
  • ESP_ERR_INVALID_ARG: Invalid argument, including if first byte of vnd_ie is not WIFI_VENDOR_IE_ELEMENT_ID (0xDD) or second byte is an invalid length.
  • ESP_ERR_NO_MEM: Out of memory