Hi dhvanilpatel.
I tried IDEx demo version codes like the methods you mentioned. When I tried the codes, I got a join failed error. I have come across a number of solutions to this error in this community. but these were not the solution for me. When I continued to examine the documentation in some more detail, I made a small experiment and the connection was successful. But I'm not sure about the correctness of the method I'm practicing.
Kinetis Thread Stack Application Developer’s Guide
As mentioned in the documentation, the full channel mask allowed for all current channels has the following format: 0x07FFF800
#define THR_SCANCHANNEL_MASK (0x07FFF800)
4.3.5 Joining a network with out-of-band commissioning.
4.3.5.1 Setting the out-of-band configuration.
As mentioned in the above headings of the documentation; THR_DEV_IS_OUT_OF_BAND_CONFIGURED I set it to TRUE and I enabled the out-of-band feature.
#define THR_DEV_IS_OUT_OF_BAND_CONFIGURED TRUE