mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
[sendspin] Bump sendspin-cpp to v0.7.0 (#17781)
This commit is contained in:
@@ -129,12 +129,12 @@ def _request_high_performance_networking(config: ConfigType) -> ConfigType:
|
|||||||
"""
|
"""
|
||||||
network.require_high_performance_networking()
|
network.require_high_performance_networking()
|
||||||
# Socket consumption varies by mode:
|
# Socket consumption varies by mode:
|
||||||
# - Server mode: 1 listening socket + 2 client connections (for handoff)
|
# - Server mode: 1 listening socket + 4 client connections (established connection, unproven connections, and a spare)
|
||||||
# - Client mode: 1 outbound connection
|
# - Client mode: 1 outbound connection
|
||||||
socket.consume_sockets(
|
socket.consume_sockets(
|
||||||
1, "sendspin_websocket_server", socket.SocketType.TCP_LISTEN
|
1, "sendspin_websocket_server", socket.SocketType.TCP_LISTEN
|
||||||
)(config)
|
)(config)
|
||||||
socket.consume_sockets(2, "sendspin_websocket_server")(config)
|
socket.consume_sockets(4, "sendspin_websocket_server")(config)
|
||||||
socket.consume_sockets(1, "sendspin_websocket_client")(config)
|
socket.consume_sockets(1, "sendspin_websocket_client")(config)
|
||||||
|
|
||||||
wifi.enable_runtime_power_save_control()
|
wifi.enable_runtime_power_save_control()
|
||||||
@@ -198,7 +198,7 @@ async def to_code(config: ConfigType) -> None:
|
|||||||
psram.request_external_task_stack()
|
psram.request_external_task_stack()
|
||||||
|
|
||||||
# sendspin-cpp library
|
# sendspin-cpp library
|
||||||
esp32.add_idf_component(name="sendspin/sendspin-cpp", ref="0.6.1")
|
esp32.add_idf_component(name="sendspin/sendspin-cpp", ref="0.7.0")
|
||||||
|
|
||||||
cg.add_define("USE_SENDSPIN", True) # for MDNS
|
cg.add_define("USE_SENDSPIN", True) # for MDNS
|
||||||
|
|
||||||
@@ -255,9 +255,6 @@ async def to_code(config: ConfigType) -> None:
|
|||||||
if psram_stack:
|
if psram_stack:
|
||||||
psram.request_external_task_stack()
|
psram.request_external_task_stack()
|
||||||
|
|
||||||
# Library defaults: priority 18 (one above httpd_priority 17 so the decoder is not
|
|
||||||
# starved by the HTTP server during the initial encoded-audio burst at stream start),
|
|
||||||
# decode buffer location PREFER_EXTERNAL.
|
|
||||||
player_struct_fields = [
|
player_struct_fields = [
|
||||||
("audio_formats", audio_format_structs),
|
("audio_formats", audio_format_structs),
|
||||||
("audio_buffer_capacity", player_cfg[CONF_BUFFER_SIZE]),
|
("audio_buffer_capacity", player_cfg[CONF_BUFFER_SIZE]),
|
||||||
|
|||||||
@@ -179,7 +179,12 @@ std::optional<uint32_t> SendspinHub::load_last_server_hash() {
|
|||||||
void SendspinHub::send_client_command(sendspin::SendspinControllerCommand command, std::optional<uint8_t> volume,
|
void SendspinHub::send_client_command(sendspin::SendspinControllerCommand command, std::optional<uint8_t> volume,
|
||||||
std::optional<bool> mute) {
|
std::optional<bool> mute) {
|
||||||
if (this->is_ready()) {
|
if (this->is_ready()) {
|
||||||
this->controller_role_->send_command(command, volume, mute);
|
sendspin::ClientCommandControllerObject obj = {
|
||||||
|
.command = command,
|
||||||
|
.volume = volume,
|
||||||
|
.muted = mute,
|
||||||
|
};
|
||||||
|
this->controller_role_->send_command(obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ dependencies:
|
|||||||
esp32async/asynctcp:
|
esp32async/asynctcp:
|
||||||
version: 3.4.91
|
version: 3.4.91
|
||||||
sendspin/sendspin-cpp:
|
sendspin/sendspin-cpp:
|
||||||
version: 0.6.1
|
version: 0.7.0
|
||||||
lvgl/lvgl:
|
lvgl/lvgl:
|
||||||
version: 9.5.0
|
version: 9.5.0
|
||||||
fastled/FastLED:
|
fastled/FastLED:
|
||||||
|
|||||||
Reference in New Issue
Block a user