I am new to C programming and BLE in general.I am trying to create a service with two characteristics,(the application simply is a modification of BLE bulb and switch). How the original application work is, on the client/switch if you push button 1, it turns on the LED 3 on the server/bulb, and when you push button 2 it turns it off.So it is only one service and one characteristic. The client acts as central and server acts as a peripheral.
What I want is to add another characteristic so that If I push button 3 on the client to turn on LED 4 on the server .(So in short button 1 will turn LED 3 on and button 3 will turn LED4 on).So I added additional characteristic on both server and client, but the problem is I don't know how to check/distinguish whether the incoming request on the server is which characteristic.
Question
1. How do I inspect the incoming request whether is coming from characteristic 1 or 2 in the server's main.c led_write_handler function?
Here is the code