Remove unused buffer length setting and use host name from settings
This commit is contained in:
@@ -19,16 +19,10 @@ menu "Snapcast Configuration"
|
|||||||
depends on !SNAPSERVER_USE_MDNS
|
depends on !SNAPSERVER_USE_MDNS
|
||||||
help
|
help
|
||||||
Port of the snapserver to connect to.
|
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
|
config SNAPCLIENT_NAME
|
||||||
string "snapclient name"
|
string "snapclient name"
|
||||||
default "esp-snapclient"
|
default "ESP32-Caster"
|
||||||
help
|
help
|
||||||
Name of the client to register the snapserver.
|
Name of the client to register the snapserver.
|
||||||
|
|
||||||
|
|||||||
@@ -101,7 +101,6 @@ static audio_board_handle_t board_handle = NULL;
|
|||||||
#define SNAPCAST_SERVER_HOST CONFIG_SNAPSERVER_HOST
|
#define SNAPCAST_SERVER_HOST CONFIG_SNAPSERVER_HOST
|
||||||
#define SNAPCAST_SERVER_PORT CONFIG_SNAPSERVER_PORT
|
#define SNAPCAST_SERVER_PORT CONFIG_SNAPSERVER_PORT
|
||||||
#endif
|
#endif
|
||||||
#define SNAPCAST_BUFF_LEN CONFIG_SNAPCLIENT_BUFF_LEN
|
|
||||||
#define SNAPCAST_CLIENT_NAME CONFIG_SNAPCLIENT_NAME
|
#define SNAPCAST_CLIENT_NAME CONFIG_SNAPCLIENT_NAME
|
||||||
#define SNAPCAST_USE_SOFT_VOL CONFIG_SNAPCLIENT_USE_SOFT_VOL
|
#define SNAPCAST_USE_SOFT_VOL CONFIG_SNAPCLIENT_USE_SOFT_VOL
|
||||||
|
|
||||||
@@ -723,7 +722,7 @@ static void http_get_task(void *pvParameters) {
|
|||||||
|
|
||||||
// init hello message
|
// init hello message
|
||||||
hello_message.mac = mac_address;
|
hello_message.mac = mac_address;
|
||||||
hello_message.hostname = "ESP32-Caster";
|
hello_message.hostname = SNAPCAST_CLIENT_NAME;
|
||||||
hello_message.version = (char *)VERSION_STRING;
|
hello_message.version = (char *)VERSION_STRING;
|
||||||
hello_message.client_name = "libsnapcast";
|
hello_message.client_name = "libsnapcast";
|
||||||
hello_message.os = "esp32";
|
hello_message.os = "esp32";
|
||||||
|
|||||||
Reference in New Issue
Block a user