|
74 | 74 | #include <performance_test_commands.h>
|
75 | 75 | #endif // PERFORMANCE_TEST_ENABLED
|
76 | 76 |
|
| 77 | +// SL-Only |
| 78 | +#include "sl_component_catalog.h" |
| 79 | +#ifdef SL_CATALOG_ZIGBEE_STACK_COMMON_PRESENT |
| 80 | +#include "ZigbeeCallbacks.h" |
| 81 | +#include "sl_cmp_config.h" |
| 82 | +#endif |
| 83 | + |
77 | 84 | /**********************************************************
|
78 | 85 | * Defines and Constants
|
79 | 86 | *********************************************************/
|
@@ -873,6 +880,7 @@ void BaseApplication::OnPlatformEvent(const ChipDeviceEvent * event, intptr_t)
|
873 | 880 | AppTask::GetLCD().SetScreen(screen);
|
874 | 881 | }
|
875 | 882 | #endif // DISPLAY_ENABLED
|
| 883 | + |
876 | 884 | if ((event->ThreadConnectivityChange.Result == kConnectivity_Established) ||
|
877 | 885 | (event->InternetConnectivityChange.IPv6 == kConnectivity_Established))
|
878 | 886 | {
|
@@ -916,6 +924,15 @@ void BaseApplication::OnPlatformEvent(const ChipDeviceEvent * event, intptr_t)
|
916 | 924 | ChipLogError(AppServer, "wfx_power_save failed: 0x%lx", err);
|
917 | 925 | }
|
918 | 926 | #endif /* CHIP_CONFIG_ENABLE_ICD_SERVER && RS911X_WIFI */
|
| 927 | +// SL-Only |
| 928 | +#ifdef SL_CATALOG_ZIGBEE_STACK_COMMON_PRESENT |
| 929 | +#if defined(SL_MATTER_ZIGBEE_CMP) |
| 930 | + uint8_t channel = otLinkGetChannel(DeviceLayer::ThreadStackMgrImpl().OTInstance()); |
| 931 | + Zigbee::RequestStart(channel); // leave handle internally |
| 932 | +#elif defined(SL_MATTER_ZIGBEE_SEQUENTIAL) // Matter Zigbee sequential |
| 933 | + Zigbee::RequestLeave(); |
| 934 | +#endif // SL_MATTER_ZIGBEE_CMP |
| 935 | +#endif // SL_CATALOG_ZIGBEE_STACK_COMMON_PRESENT |
919 | 936 | }
|
920 | 937 | break;
|
921 | 938 | default:
|
|
0 commit comments