Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
[toble] comment resolution.
Browse files Browse the repository at this point in the history
  • Loading branch information
turon committed Oct 21, 2019
1 parent 1498f02 commit 20bfa10
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions main/include/OpenThreadConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_APP

// Turn on a moderate level of logging in OpenThread
#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG
#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_NOTE

// Turn on Nordic platform logs
#define OPENTHREAD_CONFIG_LOG_PLATFORM 1
Expand All @@ -49,7 +49,11 @@
// ==============================================================
// CONFIG TOBLE
// ==============================================================
#define OPENTHREAD_CONFIG_ENABLE_TOBLE 1

/**
* To enable the Thread-over-BLE feature set this to 1.
*/
#define OPENTHREAD_CONFIG_ENABLE_TOBLE 0

#define OPENTHREAD_CONFIG_ENABLE_BLE 1
#define OPENTHREAD_CONFIG_ENABLE_TOBLE_TO_BLE 1
Expand Down
2 changes: 2 additions & 0 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ int main(void)
}
}

#if OPENTHREAD_CONFIG_ENABLE_TOBLE
// Disable Weave Pairing if Thread network has already been provisioned.
// TODO: Change this to only disable WoBLE when *full provisioning* has completed,
// i.e. ConfigurationManager.IsPairedToAccount()
Expand All @@ -307,6 +308,7 @@ int main(void)
NRF_LOG_INFO("WoBLE pairing is disabled, as Thread is provisioned");
}
else
#endif // OPENTHREAD_CONFIG_ENABLE_TOBLE
{
NRF_LOG_INFO("WoBLE pairing is enabled");
}
Expand Down
2 changes: 1 addition & 1 deletion third_party/openthread

0 comments on commit 20bfa10

Please sign in to comment.