Skip to content

Commit 92a322d

Browse files
authoredJun 5, 2024··
Adding few logs related to event ids for ESP32 platform specific events (#33751)
1 parent 6092e8a commit 92a322d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎src/platform/ESP32/PlatformManagerImpl.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ void PlatformManagerImpl::HandleESPSystemEvent(void * arg, esp_event_base_t even
119119
event.Platform.ESPSystemEvent.Id = eventId;
120120
if (eventBase == IP_EVENT)
121121
{
122+
ChipLogProgress(DeviceLayer, "Posting ESPSystemEvent: IP Event with eventId : %ld", eventId);
122123
switch (eventId)
123124
{
124125
case IP_EVENT_STA_GOT_IP:
@@ -138,6 +139,7 @@ void PlatformManagerImpl::HandleESPSystemEvent(void * arg, esp_event_base_t even
138139
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
139140
else if (eventBase == WIFI_EVENT)
140141
{
142+
ChipLogProgress(DeviceLayer, "Posting ESPSystemEvent: Wifi Event with eventId : %ld", eventId);
141143
switch (eventId)
142144
{
143145
case WIFI_EVENT_SCAN_DONE:
@@ -181,7 +183,10 @@ void PlatformManagerImpl::HandleESPSystemEvent(void * arg, esp_event_base_t even
181183
}
182184
}
183185
#endif // CHIP_DEVICE_CONFIG_ENABLE_WIFI
184-
186+
else
187+
{
188+
ChipLogProgress(DeviceLayer, "Posting ESPSystemEvent with eventId : %ld", eventId);
189+
}
185190
sInstance.PostEventOrDie(&event);
186191
}
187192

0 commit comments

Comments
 (0)
Please sign in to comment.