Remove unused buffer length setting and use host name from settings

This commit is contained in:
raul
2022-12-04 22:44:34 +01:00
Unverified
parent 3e038dd64f
commit ee4fc197ae
2 changed files with 2 additions and 9 deletions

View File

@@ -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.

View File

@@ -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";