1. 测试了wifi的驱动,连带着蓝牙一同测试,带着蓝牙则测试不通过,需要重写蓝牙驱动代码
2. 修改wifi与蓝牙的驱动代码,并且进行了测试,测试通过 3. 新增分区表,为板载16M的flash作分区规划,预留ota分区 4. 测试了SD卡的驱动,正常读出数据,测试通过 5. 新增了CMake配置,just_monitor(monitor_only.sh),只监视,无编译,无烧录
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
#pragma once
|
||||
|
||||
#include "esp_log.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "esp_wifi.h"
|
||||
#include "nvs_flash.h"
|
||||
#include "esp_log.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h> // For memcpy
|
||||
#include "esp_system.h"
|
||||
#include "esp_bt.h"
|
||||
#include "esp_gap_ble_api.h"
|
||||
#include "esp_bt_main.h"
|
||||
|
||||
// WiFi AP信息结构体
|
||||
typedef struct {
|
||||
char ssid[33]; // SSID名称 (最大32字符 + 1个空字符)
|
||||
uint8_t bssid[6]; // MAC地址
|
||||
int8_t rssi; // 信号强度
|
||||
wifi_auth_mode_t authmode; // 认证模式
|
||||
} wifi_ap_info_t;
|
||||
|
||||
// BLE设备信息结构体
|
||||
typedef struct {
|
||||
char name[100]; // 设备名称
|
||||
uint8_t address[6]; // MAC地址
|
||||
int8_t rssi; // 信号强度
|
||||
} ble_device_info_t;
|
||||
|
||||
extern uint16_t BLE_NUM;
|
||||
extern uint16_t WIFI_NUM;
|
||||
extern bool Scan_finish;
|
||||
|
||||
void Wireless_Init(void);
|
||||
void WIFI_Init(void *arg);
|
||||
uint16_t WIFI_Scan(void);
|
||||
void BLE_Init(void *arg);
|
||||
uint16_t BLE_Scan(void);
|
||||
|
||||
// 新增接口函数
|
||||
uint16_t wireless_get_wifi_ap_list(wifi_ap_info_t *ap_list, uint16_t max_aps);
|
||||
uint16_t wireless_get_ble_device_list(ble_device_info_t *device_list, uint16_t max_devices);
|
||||
void wireless_print_wifi_aps(void);
|
||||
void wireless_print_ble_devices(void);
|
||||
Reference in New Issue
Block a user