/* Simple WiFi Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "rom/ets_sys.h"
#include "esp_wifi.h"
#include "esp_event_loop.h"
#include "esp_log.h"
#include "nvs_flash.h"
/* The examples use simple WiFi configuration that you can set via
'make menuconfig'.
If you'd rather not, just change the below entries to strings with
the config you want - ie #define EXAMPLE_WIFI_SSID "mywifissid"
*/
// #define EXAMPLE_ESP_WIFI_MODE_AP CONFIG_ESP_WIFI_MODE_AP //TRUE:AP FALSE:STA
#define EXAMPLE_ESP_WIFI_SSID "sunluxin_ap"
#define EXAMPLE_ESP_WIFI_PASS "1234567890"
#define EXAMPLE_MAX_STA_CONN 4
/* FreeRTOS event group to signal when we are connected*/
static EventGroupHandle_t wifi_event_group;
/* The event group allows multiple bits for each event,
but we only care about one event - are we connected
to the AP with an IP? */
const int WIFI_CONNECTED_BIT = BIT0;
static const char *TAG = "simple wifi";
void send_pkt_test(void* pData);
#define AMSDU_LEN (81)
uint8_t amsdu_hdr[50] = {
0xec, 0xfa, 0xbc, 0x1d, 0x33, 0x2e, // MSDU DA
0xF0, 0x1F, 0xAF, 0x15, 0x59, 0x02, // MSDU SA
0x04, 0x66,//0x04, 0x63, // MSUD length
0xAA, 0xAA, 0x03, 0x00, 0x00, 0x00, 0x08, 0x00, // 802.2 LLC header
0x45, 0x00, 0x05, 0xDA, 0x5A, 0xC7, 0x00, 0x
esp_802.11_tx demo
最新推荐文章于 2024-04-19 09:58:18 发布