Hello all,
I am trying to modify the simplekeys.c along with keyfobdemo.c to all a client to read more than 1 byte upon notification, basically SIMPLEPROFILE_CHAR5 + SK_KEYPRESSED functionality. I have done extensive searching on the topic, http://e2e.ti.com/support/low_power_rf/f/538/t/157081.aspx?pi239031352=2 was a good reference but it doesn't look like the original poster found success either. I would like to receive a notification whenever one of the buttons on the keyfob is pressed, once that notificaion is recieved, the client (BTool) would read in an array of size greater than 1, say 5 bytes. Is this even possible with this Attribute? I have increased the size of skKeyPressed to an array of size 5, as well as modifying the profile attributes table, all in simplekeys.c.
In the keyfobapp_HandleKeys function, I created test_array[5] = {0x0F,0x0F, 0x0F, 0x0F, 0x0F} and my call of set parameter function in the HadleKeys function looks like this... SK_SetParameter( SK_KEY_ATTR, 5, test_array).
I then modify the SK_SetParameter function in simplekeys.c by adding the osal_memcpy(skKeyPressed, pValue, 5).
Can anyone help? Thanks. -Chris