Replies: 5 comments 2 replies
-
Correct, currently this is not possible because of a limitation of the library used.
The library itself does not seem to be maintained very well. Last update is 2 years ago, 174 open issues. And it seems the maintainer does not even know himself how to do it. But I think there is no better library available. Are you able to do some research and to provide the results here? |
Beta Was this translation helpful? Give feedback.
-
Yes I'm looking into this.
…On Tue, Mar 19, 2024, 1:49 AM Klaus Musch ***@***.***> wrote:
Correct, currently this is not possible because of a limitation of the
library used.
I see two ways to achieve this, both need some research.
1. disconnect and repair, with the need to pick the correct device
(each device will try to reconnect immediately)
- T-vK/ESP32-BLE-Keyboard#147
<T-vK/ESP32-BLE-Keyboard#147>
1. have more than one device connected at the same time
- T-vK/ESP32-BLE-Keyboard#236
<T-vK/ESP32-BLE-Keyboard#236>
- T-vK/ESP32-BLE-Keyboard#95
<T-vK/ESP32-BLE-Keyboard#95>
- T-vK/ESP32-BLE-Keyboard#76
<T-vK/ESP32-BLE-Keyboard#76>
- T-vK/ESP32-BLE-Keyboard#66
<T-vK/ESP32-BLE-Keyboard#66>
- https://github.com/ServAlex/ESP32-BLE-Combo
The library itself does not seem to be maintained very well. Last update
is 2 years ago, 174 open issues. And it seems the maintainer does not even
know himself how to do it. But I think there is no better library available.
Are you able to do some research and to provide the results here?
—
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANSYYLELFOSNHQQ32BYUACLYY7GYHAVCNFSM6AAAAABE4YOTGWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQMZWGEZTA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
What I found out so far: nr 2. will not work. There is also a limitation in NimBLE. Only one NimBLEDevice is allowed (maybe due to a limitation of the hardware), therefore only one NimBLEServer is allowed, and a NimBLEServer can not send different data to different clients. nr 1. (disconnect and repair) could work. NimBLE supports a whitelist for connections (see example "NimBLE_Server_Whitelist.ino" from NimBLE). You need to know the MAC addresses of the devices (FireTV, AppleTV) and set them in a whitelist filter, so that only clients on the whitelist can connect. You could get the bluetooth MAC address of your devices on first connect in the log. So for this to work, you would need to find out the MAC addresses of your FireTV and AppleTV. These have to be put into the code. The BLE keyboard library needed to be changed, there is currently nothing in there that supports something like this. Do you think the whole approach is feasibible? To put the MAC addresses of the devices into the code to the correct scenes? |
Beta Was this translation helpful? Give feedback.
-
Finally I got it running with support of h2zero . Currently it is only a proof of concept. For having it in OMOTE, the following needs to be done
Technically the problem is solved. The rest is only a finger exercise. I'm wondering if someone is still waiting for the support of several BLE devices? |
Beta Was this translation helpful? Give feedback.
-
I have a FireTV and an AppleTV. They both can use the bluKeyboard just fine.
The problem is I can only have one of the two devices connected, and currently there isn't a way to have more than one.
I want to give them both unique IDs, I only 1 active at a time, I have both a FireTV and an AppleTV, and they both work perfectly fine with my bluKeyboard. However, the issue is that I can only connect one device at a time. Unfortunately, there doesn't seem to be a way to disconnect from one device and connect to another without having to go through the pairing process all over again.
My idea is to assign unique IDs to each device so that I can easily switch between them depending on the selected scene. However, after doing some research, I couldn't find any option to disconnect from one device and connect to another without having to repeat the entire pairing process. based on the selected scene.
Beta Was this translation helpful? Give feedback.
All reactions