chore: Update esp-wifi-connect version in idf_component.yml and refac… (#1769)
* chore: Update esp-wifi-connect version in idf_component.yml and refactor event callback in WifiBoard class - Bumped esp-wifi-connect version from ~3.0.2 to ~3.1.1 in idf_component.yml. - Refactored the event callback in WifiBoard to use a string parameter for SSID data, improving clarity and consistency in network event handling. * refactor: Change logging level for OpusHead and OpusTags detection in OggDemuxer - Updated log statements from ESP_LOGI to ESP_LOGD for OpusHead and OpusTags found events, improving log verbosity control.
This commit is contained in:
@ -246,7 +246,7 @@ size_t OggDemuxer::Process(const uint8_t* data, size_t size)
|
|||||||
(ctx_.packet_buf[13] << 8) |
|
(ctx_.packet_buf[13] << 8) |
|
||||||
(ctx_.packet_buf[14] << 16) |
|
(ctx_.packet_buf[14] << 16) |
|
||||||
(ctx_.packet_buf[15] << 24);
|
(ctx_.packet_buf[15] << 24);
|
||||||
ESP_LOGI(TAG, "OpusHead found, sample_rate=%d", opus_info_.sample_rate);
|
ESP_LOGD(TAG, "OpusHead found, sample_rate=%d", opus_info_.sample_rate);
|
||||||
}
|
}
|
||||||
ctx_.packet_len = 0;
|
ctx_.packet_len = 0;
|
||||||
ctx_.packet_continued = false;
|
ctx_.packet_continued = false;
|
||||||
@ -258,7 +258,7 @@ size_t OggDemuxer::Process(const uint8_t* data, size_t size)
|
|||||||
if (!opus_info_.tags_seen) {
|
if (!opus_info_.tags_seen) {
|
||||||
if (ctx_.packet_len >= 8 && memcmp(ctx_.packet_buf, "OpusTags", 8) == 0) {
|
if (ctx_.packet_len >= 8 && memcmp(ctx_.packet_buf, "OpusTags", 8) == 0) {
|
||||||
opus_info_.tags_seen = true;
|
opus_info_.tags_seen = true;
|
||||||
ESP_LOGI(TAG, "OpusTags found.");
|
ESP_LOGD(TAG, "OpusTags found.");
|
||||||
ctx_.packet_len = 0;
|
ctx_.packet_len = 0;
|
||||||
ctx_.packet_continued = false;
|
ctx_.packet_continued = false;
|
||||||
ctx_.seg_index++;
|
ctx_.seg_index++;
|
||||||
|
|||||||
@ -59,17 +59,16 @@ void WifiBoard::StartNetwork() {
|
|||||||
wifi_manager.Initialize(config);
|
wifi_manager.Initialize(config);
|
||||||
|
|
||||||
// Set unified event callback - forward to NetworkEvent with SSID data
|
// Set unified event callback - forward to NetworkEvent with SSID data
|
||||||
wifi_manager.SetEventCallback([this, &wifi_manager](WifiEvent event) {
|
wifi_manager.SetEventCallback([this](WifiEvent event, const std::string& data) {
|
||||||
std::string ssid = wifi_manager.GetSsid();
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case WifiEvent::Scanning:
|
case WifiEvent::Scanning:
|
||||||
OnNetworkEvent(NetworkEvent::Scanning);
|
OnNetworkEvent(NetworkEvent::Scanning);
|
||||||
break;
|
break;
|
||||||
case WifiEvent::Connecting:
|
case WifiEvent::Connecting:
|
||||||
OnNetworkEvent(NetworkEvent::Connecting, ssid);
|
OnNetworkEvent(NetworkEvent::Connecting, data);
|
||||||
break;
|
break;
|
||||||
case WifiEvent::Connected:
|
case WifiEvent::Connected:
|
||||||
OnNetworkEvent(NetworkEvent::Connected, ssid);
|
OnNetworkEvent(NetworkEvent::Connected, data);
|
||||||
break;
|
break;
|
||||||
case WifiEvent::Disconnected:
|
case WifiEvent::Disconnected:
|
||||||
OnNetworkEvent(NetworkEvent::Disconnected);
|
OnNetworkEvent(NetworkEvent::Disconnected);
|
||||||
|
|||||||
@ -19,7 +19,7 @@ dependencies:
|
|||||||
waveshare/custom_io_expander_ch32v003: ^1.0.0
|
waveshare/custom_io_expander_ch32v003: ^1.0.0
|
||||||
espressif/esp_lcd_panel_io_additions: ^1.0.1
|
espressif/esp_lcd_panel_io_additions: ^1.0.1
|
||||||
78/esp_lcd_nv3023: ~1.0.0
|
78/esp_lcd_nv3023: ~1.0.0
|
||||||
78/esp-wifi-connect: ~3.0.2
|
78/esp-wifi-connect: ~3.1.1
|
||||||
espressif/esp_audio_effects: ~1.2.1
|
espressif/esp_audio_effects: ~1.2.1
|
||||||
espressif/esp_audio_codec: ~2.4.1
|
espressif/esp_audio_codec: ~2.4.1
|
||||||
78/esp-ml307: ~3.6.4
|
78/esp-ml307: ~3.6.4
|
||||||
|
|||||||
Reference in New Issue
Block a user