Skip to content

Commit

Permalink
Adding few logs related to event ids for ESP32 platform specific even…
Browse files Browse the repository at this point in the history
…ts (#33751)
  • Loading branch information
shripad621git authored Jun 5, 2024
1 parent 6092e8a commit 92a322d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/platform/ESP32/PlatformManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ void PlatformManagerImpl::HandleESPSystemEvent(void * arg, esp_event_base_t even
event.Platform.ESPSystemEvent.Id = eventId;
if (eventBase == IP_EVENT)
{
ChipLogProgress(DeviceLayer, "Posting ESPSystemEvent: IP Event with eventId : %ld", eventId);
switch (eventId)
{
case IP_EVENT_STA_GOT_IP:
Expand All @@ -138,6 +139,7 @@ void PlatformManagerImpl::HandleESPSystemEvent(void * arg, esp_event_base_t even
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
else if (eventBase == WIFI_EVENT)
{
ChipLogProgress(DeviceLayer, "Posting ESPSystemEvent: Wifi Event with eventId : %ld", eventId);
switch (eventId)
{
case WIFI_EVENT_SCAN_DONE:
Expand Down Expand Up @@ -181,7 +183,10 @@ void PlatformManagerImpl::HandleESPSystemEvent(void * arg, esp_event_base_t even
}
}
#endif // CHIP_DEVICE_CONFIG_ENABLE_WIFI

else
{
ChipLogProgress(DeviceLayer, "Posting ESPSystemEvent with eventId : %ld", eventId);
}
sInstance.PostEventOrDie(&event);
}

Expand Down

0 comments on commit 92a322d

Please sign in to comment.