Thank you for the quick reply,
What is needed for establishing connection to two different devices (the PC as HID, and the other ESP32 as a data server)?
I'm trying to combine these examples:
Connection to another esp32:
Connection to pc:
I can run them together from the same code, but I cant get them to run simultaneously (meaning that whichever device it manages to connect to first starts communicating with the controller alone).
To my understanding, Bluetooth stops sending Advertisements after its connected, but I need it to connect to 2 different devices before stopping.
I tried combining the examples (1) and example (2) in several ways:
*Combining both packet handlers together to one.
*Defining two different packet handlers one for each connection.
*Using hci_send_cmd(&hci_le_set_advertise_enable, 1) after the last case in the the HOG_DEMO packet handler, and applying the packet handler from the le server example afterwards.
here's an example to one of my attempts:
Thank you very much
Gal