How can I read from this bluetooth button from esp32?

andrews
Posts: 17
Joined: Sat Apr 07, 2018 10:39 pm

How can I read from this bluetooth button from esp32?

Postby andrews » Tue Apr 24, 2018 5:09 am

I have this bluetooth button and I want my esp32 to listen to a button press.

This article shows how to do it from Linux: https://shkspr.mobi/blog/2016/02/cheap- ... and-linux/

I have the same button, but I can't find any esp32 keyboard pairing example which I presume is the basic approach to interface with this button. Anyone point me in the right direction to some esp32 bluetooth keyboard pairing sample code that might be a starting point?

chegewara
Posts: 2210
Joined: Wed Jun 14, 2017 9:00 pm

Re: How can I read from this bluetooth button from esp32?

Postby chegewara » Wed Apr 25, 2018 4:11 am

If this is really device that is serving as hid keyboard then only i can say it can be done. Maybe this can help you:

https://github.com/nkolban/esp32-snippe ... -383315534

andrews
Posts: 17
Joined: Sat Apr 07, 2018 10:39 pm

Re: How can I read from this bluetooth button from esp32?

Postby andrews » Wed Apr 25, 2018 8:41 pm

Hello Chegawara

The example code you reference seems to be BLE rather than BlueTooth Classic - will it still work?

Thanks

chegewara
Posts: 2210
Joined: Wed Jun 14, 2017 9:00 pm

Re: How can I read from this bluetooth button from esp32?

Postby chegewara » Wed Apr 25, 2018 8:57 pm

If this is classic bluetooth button then no, sorry, my mistake.

Who is online

Users browsing this forum: No registered users and 162 guests