Skip to content

Commit

Permalink
[nrfconnect] new: sleepy behaviour for lighting app (#23935)
Browse files Browse the repository at this point in the history
* new: sleepy behaviour for lighting app

* chg: restyle

* chg: removed prj_sleepy.conf. Left changes to AppTask.cpp to allow building sample using CSL

* fix: should keep the router thread device on the basic use case for lighting
  • Loading branch information
rochaferraz authored Feb 2, 2023
1 parent 2249d63 commit 95b39cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/lighting-app/nrfconnect/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,13 @@ CHIP_ERROR AppTask::Init()
return err;
}

#if CONFIG_CHIP_THREAD_SSED
err = ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_SynchronizedSleepyEndDevice);
#elif CONFIG_OPENTHREAD_MTD_SED
err = ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_SleepyEndDevice);
#else
err = ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_Router);
#endif

if (err != CHIP_NO_ERROR)
{
Expand Down

0 comments on commit 95b39cf

Please sign in to comment.