Hello,
I would like to use proxy_server(example of light_switch) and ble_app_blinky_c, to make these two functions work together in one card. So this card can be controlled by proxy_cilent in mesh net-work after it is provisioned , and the order from proxy_client will active the function to illume the LED2 in ble_app_blinky_peripheral.
And the document who introduce the technology of BLE show that : The most important thing to keep in mind with GATT and connections is that connections are exclusive. What is meant by that is that a BLE peripheral can only be connected to one central device (a mobile phone, etc.) at a time!
I have already realized individually each of these two function to work well in the same program. But these two function will cause the conflict when they work together. And I think the problem comes from the event who takes place during the interruption of each function? These events come from these two functions below?
static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context): from ble_app_blinky_c
static void gatt_evt_handler(const mesh_gatt_evt_t * p_evt, void * p_context): from light_switch_proxy_server
So, I would like to ask if it is possible to make these two functions work together without conflict, If yes, how to do it?
Thank you very much.