[config] commissioner (#4020)

This commit is contained in:
Jonathan Hui
2019-07-31 14:16:30 -07:00
parent 6c8a9a8661
commit f72f792874
39 changed files with 151 additions and 119 deletions
+14
View File
@@ -34,6 +34,8 @@
#include "test_platform.h"
#include "test_util.h"
#if OPENTHREAD_CONFIG_COMMISSIONER_ENABLE
static const otExtendedPanId sXPanId = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08}};
void TestMinimumPassphrase(void)
@@ -87,3 +89,15 @@ int main(void)
return 0;
}
#endif
#else // #if OPENTHREAD_CONFIG_COMMISSIONER_ENABLE
#ifdef ENABLE_TEST_MAIN
int main(void)
{
printf("Commissioenr role disabled\n");
return 0;
}
#endif
#endif // #if OPENTHREAD_CONFIG_COMMISSIONER_ENABLE