NimBLE-Arduino icon indicating copy to clipboard operation
NimBLE-Arduino copied to clipboard

Is implementing a BLE HID Keyboard and a BLE UART possible on one ESP32 simultaneously?

Open ThomasAtBBTF opened this issue 2 years ago • 1 comments

I have two working sketches one with a keyboard and the other with a BLE UART. I also have a IOS application which can talk with the BLE UART.

Now I want to integrate the two servers into one BLEDevice. The code seems to work, and I can use the keyboard with no problems.

But I can not connect in my IOS app to the UART anymore. I think because of the device is immediately connected by IOS as a keyboard it does not show up anymore when I iterate through the devices in my IOS app.

Any suggestions if this is at all possible. Can I create two Servers in one device and start advertising the not connected device? How can I connect from a IOS app to the second service?

ThomasAtBBTF avatar Jul 30 '23 22:07 ThomasAtBBTF

You could just add the UART service to your keyboard app.

h2zero avatar Aug 12 '23 17:08 h2zero