I am trying to understand light_switch_provisioner application. I am using Segger Embedded Studio for debugging. I have inserted a breakpoint at line number 631 in node_setup.c in provisioner application.
At the breakpoint when I check value of event_type, it is shown as CONFIG_CLIENT_EVENT_TYPE_TIMEOUT which is weird! It should be CONFIG_CLIENT_EVENT_TYPE_MSG.
Also the value of length in node_setup_config_client_event_process is shown as 2. And if you check the length in config_opcode_handler then it is shown as 0x33!
I fail to understand what is going on and really have no clue if the debugger is problematic or there is a bug in the code!
Is this an issue with the debugger or the code? or is it something else?