diff --git a/main/Kconfig.projbuild b/main/Kconfig.projbuild index 1cb3dbb..b0d79a3 100644 --- a/main/Kconfig.projbuild +++ b/main/Kconfig.projbuild @@ -19,16 +19,10 @@ menu "Snapcast Configuration" depends on !SNAPSERVER_USE_MDNS help Port of the snapserver to connect to. - - config SNAPCLIENT_BUFF_LEN - int "snapcast protocol buffer len" - default 4000 - help - Size of the snapclient protocol messages buffer (in bytes). config SNAPCLIENT_NAME string "snapclient name" - default "esp-snapclient" + default "ESP32-Caster" help Name of the client to register the snapserver. diff --git a/main/main.c b/main/main.c index 963c6c7..36e4145 100644 --- a/main/main.c +++ b/main/main.c @@ -101,7 +101,6 @@ static audio_board_handle_t board_handle = NULL; #define SNAPCAST_SERVER_HOST CONFIG_SNAPSERVER_HOST #define SNAPCAST_SERVER_PORT CONFIG_SNAPSERVER_PORT #endif -#define SNAPCAST_BUFF_LEN CONFIG_SNAPCLIENT_BUFF_LEN #define SNAPCAST_CLIENT_NAME CONFIG_SNAPCLIENT_NAME #define SNAPCAST_USE_SOFT_VOL CONFIG_SNAPCLIENT_USE_SOFT_VOL @@ -723,7 +722,7 @@ static void http_get_task(void *pvParameters) { // init hello message hello_message.mac = mac_address; - hello_message.hostname = "ESP32-Caster"; + hello_message.hostname = SNAPCAST_CLIENT_NAME; hello_message.version = (char *)VERSION_STRING; hello_message.client_name = "libsnapcast"; hello_message.os = "esp32";