I subscribe to GPIO_0 using the following code
adl_io_handle = adl_ioSubscribe ( ADL_IO_Q24CLASSIC_GPIO_0, 1, 1, 0, NULL); //always return the value 5
adl_io_handle always return the value 5 and i assume ioSubscribe is successfull.
I use the following code to read the current state of the input. I call this from a Timer Handler every 1 second.
I tap pin #47 (GPIO_0) of the module to ground from time to time but it always return -5. It seems no state change happens. Im expecting io_value to change. What could be the problem?