Replies: 1 comment 5 replies
-
| You've done well, unfortunately you've run into a missing API. There currently is not a way to differentiate between characteristics that have the same uuid and the library will just provide the first one found. | 
Beta Was this translation helpful? Give feedback.
                  
                    5 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm way out of my depth but thick I'm so close to getting this to work.
I want to control a ESP WROOM 32 with a FireTV BLE remote.
I've used Wireshark to read a debug log from my phone and also used nRF Connect to try to work out the UUIDs, Services, Characteristics and Handles used. I believe the phone connects to the remote then writes "0100" to Characteristics with Handles:
0x005f
0x0063
0x0067
0x006b
0x0078
Then setup Armbian on my T95Z Plus TV box to connect to the remote and try to work out the button presses with btmon and gatttool:
All the previous mentioned Handles have the same UUID "00002a4d-0000-1000-8000-00805f9b34fb".
I've used example NimBLE_Client.ino and copied the Service and Characteristic UUIDs in here:
I've enabled debug in Arduino Tools>Core Debug Level>Debug and reflashed the ESP32:
Can someone please tell me if "!pChr->subscribe(true, notifyCB)" subscribes to the Characteristic (pChr = pSvc->getCharacteristic("00002a4d-0000-1000-8000-00805f9b34fb")) for all the handles for button press notifications or does it have to subscribe to each handle separately and if so how can this be done?
Appreciate any help as I've spent ages stabbing in the dark. :)
Beta Was this translation helpful? Give feedback.
All reactions