Merge branch 'WiFi-Manager' of https://github.com/philippe44/squeezelite-esp32 into WiFi-Manager

This commit is contained in:
Christian Herzog
2019-09-10 07:52:58 +02:00
5 changed files with 16 additions and 12 deletions

View File

@@ -39,8 +39,8 @@
#define BT_RC_TG_TAG "RCTG"
#define BT_RC_CT_TAG "RCCT"
#ifndef CONFIG_BT_SINK_NAME
#define CONFIG_BT_SINK_NAME "default"
#ifndef CONFIG_BT_NAME
#define CONFIG_BT_NAME "ESP32-BT"
#endif
extern char current_namespace[];
@@ -468,11 +468,11 @@ static void bt_av_hdl_stack_evt(uint16_t event, void *p_param)
case BT_APP_EVT_STACK_UP: {
/* set up device name */
nvs_handle nvs;
char dev_name[32] = CONFIG_BT_SINK_NAME;
char dev_name[32] = CONFIG_BT_NAME;
if (nvs_open(current_namespace, NVS_READONLY, &nvs) == ESP_OK) {
size_t len = 31;
nvs_get_str(nvs, "bt_sink_name", dev_name, &len);
nvs_get_str(nvs, "bt_name", dev_name, &len);
nvs_close(nvs);
}

View File

@@ -19,7 +19,7 @@
#include "trace.h"
#ifndef CONFIG_AIRPLAY_NAME
#define CONFIG_AIRPLAY_NAME "disabled"
#define CONFIG_AIRPLAY_NAME "ESP32-AirPlay"
#endif
static const char * TAG = "platform";
@@ -60,7 +60,7 @@ void raop_sink_init(raop_cmd_cb_t cmd_cb, raop_data_cb_t data_cb) {
if (nvs_open(current_namespace, NVS_READONLY, &nvs) == ESP_OK) {
size_t len = sizeof(sink_name) - 1;
nvs_get_str(nvs, "airplay_sink_name", sink_name, &len);
nvs_get_str(nvs, "airplay_name", sink_name, &len);
nvs_close(nvs);
}

View File

@@ -1,7 +1,8 @@
set(COMPONENT_ADD_INCLUDEDIRS . )
set(COMPONENT_SRCS "esp_app_main.c" "cmd_wifi.c" "console.c" "nvs_utilities.c" "cmd_squeezelite.c" )
set(REQUIRES esp_common )
set(REQUIRES_COMPONENTS freertos nvs_flash esp32 spi_flash newlib log console wifi-manager )
set(COMPONENT_SRCS "esp_app_main.c" "platform_esp32.c" "cmd_wifi.c" "console.c" "nvs_utilities.c" "cmd_squeezelite.c")
set(REQUIRES esp_common)
set(REQUIRES_COMPONENTS freertos squeezelite nvs_flash esp32 spi_flash newlib log console )
register_component()

View File

@@ -160,7 +160,7 @@ menu "Squeezelite-ESP32"
default y
help
Enable bluetooth sink (Note that you obviously can't at the same time be a Bluetooth receiver and transmitter)
config BT_SINK_NAME
config BT_NAME
depends on BT_SINK
string "Name of Bluetooth A2DP device"
default "ESP32-BT"

View File

@@ -77,9 +77,12 @@ CONFIG_SPIRAM_SIZE=-1
CONFIG_SPIRAM_SPEED_80M=y
CONFIG_SPIRAM_MEMTEST=y
CONFIG_SPIRAM_CACHE_WORKAROUND=y
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=512
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=256
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=65536
CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y
CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y
CONFIG_SPIRAM_OCCUPY_VSPI_HOST=y
CONFIG_SPIRAM_BANKSWITCH_ENABLE=n
CONFIG_D0WD_PSRAM_CLK_IO=17