I'm using two R41Z evaluation board as router_eligible_device, with one of them I start creating the network and the device takes the leader role and the second one can be configured to join the created network by sending the command through the shell or pressing once the button. I'd like to initiate this second device not as "gDeviceState_FactoryDefault_c" but trying to join the created network so I don't have to use neither the shell nor the button.
I've been trying to understand the configuration functions but I haven't been able to start it in joining mode. How can I change it?
Thank you for your time!