I want to make at the Coap application from the example wireless_examples_thread_router_eligible_device an custom application. I need to send my luxometer value through Coap when an input interrupt comes in PTA17.
To recycle a keyboard event report I changed the switch SW2 pin PTC5 to my PTA17.
I thought I could use the event "gKBD_EventPB2_c" attached to the previous switch pin SW2 PTC5 (now attached to my PTA17), but when I trigger PTA17 input the module resets.
What could be the problem? If it is not possible to replace the switch pin to any custom pin, could someone show me an example how to create a new event to report as it is done in Keyboard.c file with my PTA17?
Thanks in advance,