与APP协议通讯验证,并添加获取与修改wifi、ble设置命令

This commit is contained in:
OPTOC
2025-09-19 14:51:49 +08:00
parent 6f6438f544
commit 7df60a6505
8 changed files with 76 additions and 51 deletions

View File

@@ -40,8 +40,6 @@ nvs_handle g_nvs_hdl; // nvs 句柄
os_work_q_t g_work_q_hdl_low; // 低于 default_os_work_q_hdl 优先级的工作队列
static void _init_nvs(void);
static void _init_ws2812(void);
static void _change_mode_event_button(button_hdl_t *handle, press_event_t event);
static void _vset_cb(sh_t *sh_hdl);
void work_app_main(void *arg)
@@ -85,31 +83,11 @@ static void _init_nvs(void)
}
}
static void _init_ws2812(void)
{
#if (CONFIG_LED_STRIP_MAX_LEDS)
ws2812_spi_led_strip_init(g_cfg_board->led_spi.spi_id, CONFIG_LED_STRIP_MAX_LEDS);
#else
ws2812_spi_led_strip_init(g_cfg_board->led_spi.spi_id, 10);
#endif
}
static void _vset_cb(sh_t *sh_hdl)
{
}
static void _change_mode_event_button(button_hdl_t *handle, press_event_t event)
{
static const char *const stat_tab[] = {
[PRESS_UP] = "up",
[PRESS_DOWN] = "down",
[LONG_PRESS_HOLD] = "held",
};
if (event < __ARRAY_SIZE(stat_tab) && stat_tab[event])
{
SYS_LOG_DBG("button stat: %s", stat_tab[event]);
}
}
// 导出符号,供 linker script 使用
// #include "utils/sb_aes.h"