Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Connection #4

Open
yatee12 opened this issue Oct 27, 2017 · 6 comments
Open

Single Connection #4

yatee12 opened this issue Oct 27, 2017 · 6 comments

Comments

@yatee12
Copy link

yatee12 commented Oct 27, 2017

Hi,

This is not an proper issue but it could be added feature if you can use single connection to use all input method i was wondering is it possible to do it since we have to send Characteristic.

If it is possible please let me know how to do it or any reference would be helpful.

Thanks,

@shinil7
Copy link

shinil7 commented Dec 8, 2017

I tried it and I'm afraid it's not possible. The central device can't detect the same peripheral device as mouse and keyboard. I tried creating a single connection for mouse and keyboard, the mouse works fine and then when I try to send a key through the sendKeys() method, the mouse pointer is moving down. You can try sending the keys through another characteristic via gatt.

@yatee12
Copy link
Author

yatee12 commented Dec 8, 2017 via email

@shinil7
Copy link

shinil7 commented Dec 30, 2017

@yatee12 Can you guide me to do it? I've tried playing with the getReportMap() but couldn't get it right. Or do I have to add one more HID service?

@shinil7
Copy link

shinil7 commented Jan 2, 2018

I've made mouse and keyboard work with a single connection. check it out 891cfd6

@zhubinsheng
Copy link

I've made mouse and keyboard work with a single connection. check it out 891cfd6

oh i need this.thank u!!

@zhubinsheng
Copy link

work good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants